3v4l.org

run code in 300+ PHP versions simultaneously
<?php assert('12' > '2'); // Numeric comparison assert('2' > '13 '); // String comparison assert('13 ' > '12'); // String comparison assert('12' > '2' && '2' > '13 ' && '13 ' > '12'); assert(12 > '2'); assert('2' > '13 '); assert('13 ' > 12); $a = [12, 2, '13 ']; sort($a); var_export($a); sort($a); var_export($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5nhSi
function name:  (null)
number of ops:  49
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSERT_CHECK                                             
          1        INIT_FCALL                                               'assert'
          2        SEND_VAL                                                 <true>
          3        SEND_VAL                                                 'assert%28%2712%27+%3E+%272%27%29'
          4        DO_ICALL                                                 
    3     5        ASSERT_CHECK                                             
          6        INIT_FCALL                                               'assert'
          7        SEND_VAL                                                 <false>
          8        SEND_VAL                                                 'assert%28%272%27+%3E+%2713+%27%29'
          9        DO_ICALL                                                 
    4    10        ASSERT_CHECK                                             
         11        INIT_FCALL                                               'assert'
         12        SEND_VAL                                                 <true>
         13        SEND_VAL                                                 'assert%28%2713+%27+%3E+%2712%27%29'
         14        DO_ICALL                                                 
    5    15        ASSERT_CHECK                                             
         16        INIT_FCALL                                               'assert'
         17        SEND_VAL                                                 <false>
         18        SEND_VAL                                                 'assert%28%2712%27+%3E+%272%27+%26%26+%272%27+%3E+%2713+%27+%26%26+%2713+%27+%3E+%2712%27%29'
         19        DO_ICALL                                                 
    6    20        ASSERT_CHECK                                             
         21        INIT_FCALL                                               'assert'
         22        SEND_VAL                                                 <true>
         23        SEND_VAL                                                 'assert%2812+%3E+%272%27%29'
         24        DO_ICALL                                                 
    7    25        ASSERT_CHECK                                             
         26        INIT_FCALL                                               'assert'
         27        SEND_VAL                                                 <false>
         28        SEND_VAL                                                 'assert%28%272%27+%3E+%2713+%27%29'
         29        DO_ICALL                                                 
    8    30        ASSERT_CHECK                                             
         31        INIT_FCALL                                               'assert'
         32        SEND_VAL                                                 <true>
         33        SEND_VAL                                                 'assert%28%2713+%27+%3E+12%29'
         34        DO_ICALL                                                 
   10    35        ASSIGN                                                   !0, <array>
   11    36        INIT_FCALL                                               'sort'
         37        SEND_REF                                                 !0
         38        DO_ICALL                                                 
         39        INIT_FCALL                                               'var_export'
         40        SEND_VAR                                                 !0
         41        DO_ICALL                                                 
   12    42        INIT_FCALL                                               'sort'
         43        SEND_REF                                                 !0
         44        DO_ICALL                                                 
         45        INIT_FCALL                                               'var_export'
         46        SEND_VAR                                                 !0
         47        DO_ICALL                                                 
         48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.4 ms | 1400 KiB | 19 Q