3v4l.org

run code in 300+ PHP versions simultaneously
<?php class 🍦 { function 👅() { return get_class($this); } } class 💩 extends 🍦 { } $😳 = new 💩(); echo serialize($😳);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VEfq3
function name:  (null)
number of ops:  8
compiled vars:  !0 = $😳
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      '%F0%9F%92%A9'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_FCALL                                               'serialize'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ECHO                                                     $4
          7      > RETURN                                                   1

Class 🍦:
Function %F0%9F%91%85:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VEfq3
function name:  👅
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_THIS                                       ~0      
          1        GET_CLASS                                        ~1      ~0
          2      > RETURN                                                   ~1
    6     3*     > RETURN                                                   null

End of function %F0%9F%91%85

End of class 🍦.

Class 💩:
Function %F0%9F%91%85:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VEfq3
function name:  👅
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_THIS                                       ~0      
          1        GET_CLASS                                        ~1      ~0
          2      > RETURN                                                   ~1
    6     3*     > RETURN                                                   null

End of function %F0%9F%91%85

End of class 💩.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.37 ms | 1395 KiB | 15 Q