3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pair{public function __construct($a,$b){list($a,$b)=array($a,$b);}} $a = Pair('somestring',function($x){echo$x;});
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b8eNt
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'Pair'
          1        SEND_VAL_EX                                              'somestring'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fb8eNt%3A3%240'
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0  $2      
          5        ASSIGN                                                   !0, $2
          6      > RETURN                                                   1

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

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

Class Pair:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b8eNt
function name:  __construct
number of ops:  10
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        INIT_ARRAY                                       ~2      !0
          3        ADD_ARRAY_ELEMENT                                ~2      !1
          4        FETCH_LIST_R                                     $3      ~2, 0
          5        ASSIGN                                                   !0, $3
          6        FETCH_LIST_R                                     $5      ~2, 1
          7        ASSIGN                                                   !1, $5
          8        FREE                                                     ~2
          9      > RETURN                                                   null

End of function __construct

End of class Pair.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
204.77 ms | 1394 KiB | 13 Q