3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doSomething($val) { echo 'YES ' . $val . "\n"; } true == true AND doSomething('something'); true == false AND doSomething('something else');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bdim6
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'dosomething'
          1        SEND_VAL                                                 'something'
          2        DO_FCALL                                      0  $0      
          3        BOOL                                             ~1      $0
    9     4      > RETURN                                                   1

Function dosomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bdim6
function name:  doSomething
number of ops:  5
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        CONCAT                                           ~1      'YES+', !0
          2        CONCAT                                           ~2      ~1, '%0A'
          3        ECHO                                                     ~2
    5     4      > RETURN                                                   null

End of function dosomething

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.35 ms | 1397 KiB | 14 Q