3v4l.org

run code in 300+ PHP versions simultaneously
<?php $job = 'set_option'; $class = 'Timely_Gearman_Worker_' . implode( '_', array_map( explode( '_', $job ), 'ucfirst' ) ); var_dump( $class );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cteF2
function name:  (null)
number of ops:  19
compiled vars:  !0 = $job, !1 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'set_option'
    4     1        INIT_FCALL                                               'implode'
    5     2        SEND_VAL                                                 '_'
    6     3        INIT_FCALL                                               'array_map'
          4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '_'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        SEND_VAL                                                 'ucfirst'
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        CONCAT                                           ~6      'Timely_Gearman_Worker_', $5
    4    14        ASSIGN                                                   !1, ~6
    8    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.95 ms | 1394 KiB | 21 Q