3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { return "ok"; } echo "test1 = ", test(), ", test2 = ", test(), "\n"; echo "test3 = ", var_export(is_null(null), true), ", test4 = ", var_export(true, true), "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IMveW
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'test1+%3D+'
          1        INIT_FCALL                                               'test'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4        ECHO                                                     '%2C+test2+%3D+'
          5        INIT_FCALL                                               'test'
          6        DO_FCALL                                      0  $1      
          7        ECHO                                                     $1
          8        ECHO                                                     '%0A'
    9     9        ECHO                                                     'test3+%3D+'
         10        INIT_FCALL                                               'var_export'
         11        TYPE_CHECK                                    2  ~2      null
         12        SEND_VAL                                                 ~2
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $3      
         15        ECHO                                                     $3
         16        ECHO                                                     '%2C+test4+%3D+'
         17        INIT_FCALL                                               'var_export'
         18        SEND_VAL                                                 <true>
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $4      
         21        ECHO                                                     $4
         22        ECHO                                                     '%0A'
         23      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IMveW
function name:  test
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   'ok'
    6     1*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.65 ms | 1398 KiB | 17 Q