3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s1 = 'toto'; $s2 = 'tata'; var_dump($s1 + $s2); var_dump($s1.$s2); var_dump("{$s1}{$s2}"); var_dump(implode("", array($s1, $s2)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ECa8p
function name:  (null)
number of ops:  25
compiled vars:  !0 = $s1, !1 = $s2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'toto'
    4     1        ASSIGN                                                   !1, 'tata'
    6     2        INIT_FCALL                                               'var_dump'
          3        ADD                                              ~4      !0, !1
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                                 
    7     6        INIT_FCALL                                               'var_dump'
          7        CONCAT                                           ~6      !0, !1
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'var_dump'
         11        NOP                                                      
         12        FAST_CONCAT                                      ~8      !0, !1
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'implode'
         17        SEND_VAL                                                 ''
         18        INIT_ARRAY                                       ~10     !0
         19        ADD_ARRAY_ELEMENT                                ~10     !1
         20        SEND_VAL                                                 ~10
         21        DO_ICALL                                         $11     
         22        SEND_VAR                                                 $11
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.96 ms | 1395 KiB | 17 Q