3v4l.org

run code in 300+ PHP versions simultaneously
<?php define ('pi', 3.14); function test(){ return 42; } class X{ public $r = pi; public $q = '122'; } $x = new X();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wjg6u
function name:  (null)
number of ops:  8
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'pi'
          2        SEND_VAL                                                 3.14
          3        DO_ICALL                                                 
   10     4        NEW                                              $2      'X'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
          7      > RETURN                                                   1

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

End of function test

Class X: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163 ms | 1394 KiB | 15 Q