3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 12.3; $x1 = "$x"; setlocale(LC_ALL, 'it_IT.UTF-8') or die('Locale not set'); $x2 = "$x"; var_dump($x1, $x2);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/91aMs
function name:  (null)
number of ops:  17
compiled vars:  !0 = $x, !1 = $x1, !2 = $x2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 12.3
    5     1        CAST                                          6  ~4      !0
          2        ASSIGN                                                   !1, ~4
    6     3        INIT_FCALL                                               'setlocale'
          4        SEND_VAL                                                 6
          5        SEND_VAL                                                 'it_IT.UTF-8'
          6        DO_ICALL                                         $6      
          7      > JMPNZ_EX                                         ~7      $6, ->10
          8    > > EXIT                                                     'Locale+not+set'
          9*       BOOL                                             ~7      <true>
    7    10    >   CAST                                          6  ~8      !0
         11        ASSIGN                                                   !2, ~8
    9    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.73 ms | 1386 KiB | 17 Q