3v4l.org

run code in 300+ PHP versions simultaneously
<?php $job = 'set_option'; $class = 'Timely_Gearman_Worker_' . function ( $job ) { return 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/XTKds
function name:  (null)
number of ops:  8
compiled vars:  !0 = $job, !1 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'set_option'
    4     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FXTKds%3A4%240'
    9     2        CONCAT                                           ~4      'Timely_Gearman_Worker_', ~3
    4     3        ASSIGN                                                   !1, ~4
   10     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FXTKds%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XTKds
function name:  {closure}
number of ops:  15
compiled vars:  !0 = $job
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'implode'
    6     2        SEND_VAL                                                 '_'
    7     3        INIT_FCALL                                               'array_map'
          4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '_'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $1      
          8        SEND_VAR                                                 $1
          9        SEND_VAL                                                 'ucfirst'
         10        DO_ICALL                                         $2      
         11        SEND_VAR                                                 $2
         12        DO_ICALL                                         $3      
         13      > RETURN                                                   $3
    9    14*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158 ms | 1395 KiB | 21 Q