3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public static function getVersion() { return array('versionNumber' => 0x656 ); } } if (foo::getVersion()['versionNumber'] < 0x656) { echo 'skip too old foo'; } echo "is ok";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/j57pb
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_STATIC_METHOD_CALL                                  'foo', 'getVersion'
          1        DO_FCALL                                      0  $0      
          2        FETCH_DIM_R                                      ~1      $0, 'versionNumber'
          3        IS_SMALLER                                               ~1, 1622
          4      > JMPZ                                                     ~2, ->6
   13     5    >   ECHO                                                     'skip+too+old+foo'
   16     6    >   ECHO                                                     'is+ok'
          7      > RETURN                                                   1

Class foo:
Function getversion:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j57pb
function name:  getVersion
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   <array>
    8     1*     > RETURN                                                   null

End of function getversion

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.23 ms | 1397 KiB | 13 Q