3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string1 = "Perez Perez Pedro 1e3"; $string2 = "Perez Pedro Perez 1000"; list($s1,$s2) = [explode(" ", $string1), explode(" ", $string2)]; sort($s1); sort($s2); var_dump($s1 == $s2); var_dump($s1 === $s2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A2kVd
function name:  (null)
number of ops:  32
compiled vars:  !0 = $string1, !1 = $string2, !2 = $s1, !3 = $s2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Perez+Perez+Pedro+1e3'
    4     1        ASSIGN                                                   !1, 'Perez+Pedro+Perez+1000'
    6     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '+'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        INIT_ARRAY                                       ~7      $6
          7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '+'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $8      
         11        ADD_ARRAY_ELEMENT                                ~7      $8
         12        FETCH_LIST_R                                     $9      ~7, 0
         13        ASSIGN                                                   !2, $9
         14        FETCH_LIST_R                                     $11     ~7, 1
         15        ASSIGN                                                   !3, $11
         16        FREE                                                     ~7
    8    17        INIT_FCALL                                               'sort'
         18        SEND_REF                                                 !2
         19        DO_ICALL                                                 
    9    20        INIT_FCALL                                               'sort'
         21        SEND_REF                                                 !3
         22        DO_ICALL                                                 
   11    23        INIT_FCALL                                               'var_dump'
         24        IS_EQUAL                                         ~15     !2, !3
         25        SEND_VAL                                                 ~15
         26        DO_ICALL                                                 
   12    27        INIT_FCALL                                               'var_dump'
         28        IS_IDENTICAL                                     ~17     !2, !3
         29        SEND_VAL                                                 ~17
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.11 ms | 1012 KiB | 16 Q