3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strcmp('20B', '21'); function test($a,$b) { return strcmp($a, $b); } echo test('20B', '21'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hMZaG
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strcmp'
          1        SEND_VAL                                                 '20B'
          2        SEND_VAL                                                 '21'
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    9     5        INIT_FCALL                                               'test'
          6        SEND_VAL                                                 '20B'
          7        SEND_VAL                                                 '21'
          8        DO_FCALL                                      0  $1      
          9        ECHO                                                     $1
   10    10      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hMZaG
function name:  test
number of ops:  8
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        INIT_FCALL                                               'strcmp'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $2      
          6      > RETURN                                                   $2
    7     7*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.91 ms | 1397 KiB | 16 Q