3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Job { public function __destruct() { echo 'Destructing Job...' . PHP_EOL; } public function start() { echo 'Starting...' . PHP_EOL; } } function wp_send_json($result) { echo 'Exiting' . PHP_EOL; exit; } wp_send_json((new Job)->start());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GBBIV
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                                   'wp_send_json'
          1        NEW                                                  $0      'Job'
          2        DO_FCALL                                          0          
          3        INIT_METHOD_CALL                                             $0, 'start'
          4        DO_FCALL                                          0  $2      
          5        SEND_VAR                                                     $2
          6        DO_FCALL                                          0          
          7      > RETURN                                                       1

Function wp_send_json:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 61) Position 1 = -2
filename:       /in/GBBIV
function name:  wp_send_json
number of ops:  5
compiled vars:  !0 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   RECV                                                 !0      
   14     1        ECHO                                                         'Exiting%0A'
   15     2      > INIT_FCALL                                                   'exit'
          3*       DO_ICALL                                                     
   16     4*     > RETURN                                                       null

End of function wp_send_json

Class Job:
Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GBBIV
function name:  __destruct
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                         'Destructing+Job...%0A'
    6     1      > RETURN                                                       null

End of function __destruct

Function start:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GBBIV
function name:  start
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                         'Starting...%0A'
   10     1      > RETURN                                                       null

End of function start

End of class Job.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.07 ms | 3324 KiB | 15 Q