3v4l.org

run code in 300+ PHP versions simultaneously
<?php $GLOBALS['wp_version'] = '6.1-alpha-53344-src'; $current_version = substr( $GLOBALS['wp_version'], 0, 3 ); var_dump( $current_version ); $current_version = (float) $current_version - 0.1; var_dump( $current_version ); $latest_stable = sprintf( '%s.x', $current_version ); var_dump( $latest_stable );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/928vf
function name:  (null)
number of ops:  27
compiled vars:  !0 = $current_version, !1 = $latest_stable
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $2      'wp_version'
          1        ASSIGN                                                   $2, '6.1-alpha-53344-src'
    4     2        INIT_FCALL                                               'substr'
          3        FETCH_R                      global              ~4      'wp_version'
          4        SEND_VAL                                                 ~4
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 3
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !0, $5
    5     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    6    12        CAST                                          5  ~8      !0
         13        SUB                                              ~9      ~8, 0.1
         14        ASSIGN                                                   !0, ~9
    7    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
    8    18        INIT_FCALL                                               'sprintf'
         19        SEND_VAL                                                 '%25s.x'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $12     
         22        ASSIGN                                                   !1, $12
    9    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !1
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.37 ms | 1461 KiB | 16 Q