3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_preporting(-1); class pupil { static function value($value) { return $value; } } $array = array(42, 3.14); var_dump(each($array)); //$first = reset(pupil::value($array)); var_dump(reset(pupil::value($array))); var_dump(each($array), each($array));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cq7om
function name:  (null)
number of ops:  30
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'error_preporting'
          1        SEND_VAL_EX                                              -1
          2        DO_FCALL                                      0          
   11     3        ASSIGN                                                   !0, <array>
   13     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL_BY_NAME                                       'each'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0  $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
   16    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'reset'
         12        INIT_STATIC_METHOD_CALL                                  'pupil', 'value'
         13        SEND_VAR                                                 !0
         14        DO_FCALL                                      0  $5      
         15        SEND_VAR_NO_REF                               0          $5
         16        DO_ICALL                                         $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                                 
   18    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL_BY_NAME                                       'each'
         21        SEND_VAR_EX                                              !0
         22        DO_FCALL                                      0  $8      
         23        SEND_VAR                                                 $8
         24        INIT_FCALL_BY_NAME                                       'each'
         25        SEND_VAR_EX                                              !0
         26        DO_FCALL                                      0  $9      
         27        SEND_VAR                                                 $9
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Class pupil:
Function value:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cq7om
function name:  value
number of ops:  3
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1      > RETURN                                                   !0
    8     2*     > RETURN                                                   null

End of function value

End of class pupil.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.97 ms | 1388 KiB | 17 Q