3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Example: chicken -> cnekcih $s = 'zwLc0Uzo,bQGPhVb&rsHNkkA'; echo substr($s, 0, 1) . strrev(substr($s, 1)); assert($s == 'cnekcih');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1Es4C
function name:  (null)
number of ops:  22
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'zwLc0Uzo%2CbQGPhVb%26rsHNkkA'
          1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $2      
          6        INIT_FCALL                                               'strrev'
          7        INIT_FCALL                                               'substr'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 1
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                         $4      
         13        CONCAT                                           ~5      $2, $4
         14        ECHO                                                     ~5
    5    15        ASSERT_CHECK                                             
         16        INIT_FCALL                                               'assert'
         17        IS_EQUAL                                         ~6      !0, 'cnekcih'
         18        SEND_VAL                                                 ~6
         19        SEND_VAL                                                 'assert%28%24s+%3D%3D+%27cnekcih%27%29'
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.77 ms | 1395 KiB | 19 Q