3v4l.org

run code in 300+ PHP versions simultaneously
<?php function compareByLength() { $a="jani"; $b="kavi"; $aa=strlen($a) <=> strlen($b); echo "$aa Refsnes.<br>"; // echo $a; } compareByLength();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vRv2H
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'comparebylength'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function comparebylength:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vRv2H
function name:  compareByLength
number of ops:  10
compiled vars:  !0 = $a, !1 = $b, !2 = $aa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'jani'
    5     1        ASSIGN                                                   !1, 'kavi'
    6     2        STRLEN                                           ~5      !0
          3        STRLEN                                           ~6      !1
          4        SPACESHIP                                        ~7      ~5, ~6
          5        ASSIGN                                                   !2, ~7
    7     6        NOP                                                      
          7        FAST_CONCAT                                      ~9      !2, '+Refsnes.%3Cbr%3E'
          8        ECHO                                                     ~9
    9     9      > RETURN                                                   null

End of function comparebylength

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.12 ms | 1397 KiB | 14 Q