3v4l.org

run code in 300+ PHP versions simultaneously
<?php $GLOBALS['wp_version'] = '5.9-alpha-53344-src'; $current_version = substr( $GLOBALS['wp_version'], 0, 3 ); var_dump( $current_version ); $current_version = number_format( (float) $current_version - 0.1, 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/M7Cb2
function name:  (null)
number of ops:  31
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, '5.9-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        INIT_FCALL                                               'number_format'
         13        CAST                                          5  ~8      !0
         14        SUB                                              ~9      ~8, 0.1
         15        SEND_VAL                                                 ~9
         16        SEND_VAL                                                 1
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !0, $10
    7    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
    8    22        INIT_FCALL                                               'sprintf'
         23        SEND_VAL                                                 '%25s.x'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $13     
         26        ASSIGN                                                   !1, $13
    9    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !1
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.7 ms | 1462 KiB | 17 Q