3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'A'; $b = 'B'; $minA = 'a'; echo strcmp($a, $b) . PHP_EOL; echo strcmp($a, $minA) . PHP_EOL; $c = $a - $b; $d = $a - $minA; echo $c . PHP_EOL; echo $d . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kjsH9
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $b, !2 = $minA, !3 = $c, !4 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'A'
    3     1        ASSIGN                                                   !1, 'B'
    4     2        ASSIGN                                                   !2, 'a'
    8     3        INIT_FCALL                                               'strcmp'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $8      
          7        CONCAT                                           ~9      $8, '%0A'
          8        ECHO                                                     ~9
    9     9        INIT_FCALL                                               'strcmp'
         10        SEND_VAR                                                 !0
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $10     
         13        CONCAT                                           ~11     $10, '%0A'
         14        ECHO                                                     ~11
   11    15        SUB                                              ~12     !0, !1
         16        ASSIGN                                                   !3, ~12
   12    17        SUB                                              ~14     !0, !2
         18        ASSIGN                                                   !4, ~14
   14    19        CONCAT                                           ~16     !3, '%0A'
         20        ECHO                                                     ~16
   15    21        CONCAT                                           ~17     !4, '%0A'
         22        ECHO                                                     ~17
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
196.13 ms | 1395 KiB | 15 Q