3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "2,50"; $pieces = explode(",",$string); $a = $pieces[0]; $b = $pieces[1]; echo $a . "\n" . $b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3FLrJ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $string, !1 = $pieces, !2 = $a, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2%2C50'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    4     6        FETCH_DIM_R                                      ~7      !1, 0
          7        ASSIGN                                                   !2, ~7
    5     8        FETCH_DIM_R                                      ~9      !1, 1
          9        ASSIGN                                                   !3, ~9
    7    10        CONCAT                                           ~11     !2, '%0A'
         11        CONCAT                                           ~12     ~11, !3
         12        ECHO                                                     ~12
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.13 ms | 1394 KiB | 15 Q