3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.99 ms | 1385 KiB | 15 Q