3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = (object)[ 'isBad' => function() { return 0 > 3; } ]; $number->isBad2 = function() { return 0 > 3; }; var_dump($number->isBad2());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2qOQj
function name:  (null)
number of ops:  13
compiled vars:  !0 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F2qOQj%3A4%240'
          1        INIT_ARRAY                                       ~2      ~1, 'isBad'
          2        CAST                                          8  ~3      ~2
    3     3        ASSIGN                                                   !0, ~3
    6     4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F2qOQj%3A6%241'
          5        ASSIGN_OBJ                                               !0, 'isBad2'
          6        OP_DATA                                                  ~6
    8     7        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !0, 'isBad2'
          9        DO_FCALL                                      0  $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2F2qOQj%3A4%240

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

End of function %00%7Bclosure%7D%2Fin%2F2qOQj%3A6%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.58 ms | 1400 KiB | 15 Q