3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { return "ok"; } echo "test1 = ", test(), ", test2 = ", test(); echo "test3 = ", var_export(is_null(null)), ", test4 = ", test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sDUoa
function name:  (null)
number of ops:  19
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
    9     8        ECHO                                                     'test3+%3D+'
          9        INIT_FCALL                                               'var_export'
         10        TYPE_CHECK                                    2  ~2      null
         11        SEND_VAL                                                 ~2
         12        DO_ICALL                                         $3      
         13        ECHO                                                     $3
         14        ECHO                                                     '%2C+test4+%3D+'
         15        INIT_FCALL                                               'test'
         16        DO_FCALL                                      0  $4      
         17        ECHO                                                     $4
         18      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sDUoa
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:
155.98 ms | 1401 KiB | 18 Q