3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function () {}); class SomeClass {} function test(SomeClass $instance) { var_dump($instance); } test(1); test('Really?'); test(imagecreate(10, 10)); test(9.999);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kh06u
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FKh06u%3A3%240'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    9     4        INIT_FCALL                                               'test'
          5        SEND_VAL                                                 1
          6        DO_FCALL                                      0          
   10     7        INIT_FCALL                                               'test'
          8        SEND_VAL                                                 'Really%3F'
          9        DO_FCALL                                      0          
   11    10        INIT_FCALL                                               'test'
         11        INIT_FCALL_BY_NAME                                       'imagecreate'
         12        SEND_VAL_EX                                              10
         13        SEND_VAL_EX                                              10
         14        DO_FCALL                                      0  $4      
         15        SEND_VAR                                                 $4
         16        DO_FCALL                                      0          
   12    17        INIT_FCALL                                               'test'
         18        SEND_VAL                                                 9.999
         19        DO_FCALL                                      0          
         20      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FKh06u%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kh06u
function name:  {closure}
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FKh06u%3A3%240

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

End of function test

Class SomeClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.65 ms | 1399 KiB | 21 Q