3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '612 600 616 604 618 606 676 592 704 700 698 694'; $string = explode("\n", $string); reset($string); sort($string); reset($string); foreach($string as $x) { echo 'case ' . $x . ':' . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 22
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/4EoXE
function name:  (null)
number of ops:  24
compiled vars:  !0 = $string, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '612%0A600%0A616%0A604%0A618%0A606%0A676%0A592%0A704%0A700%0A698%0A694'
   15     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
   16     6        INIT_FCALL                                               'reset'
          7        SEND_REF                                                 !0
          8        DO_ICALL                                                 
   17     9        INIT_FCALL                                               'sort'
         10        SEND_REF                                                 !0
         11        DO_ICALL                                                 
   18    12        INIT_FCALL                                               'reset'
         13        SEND_REF                                                 !0
         14        DO_ICALL                                                 
   20    15      > FE_RESET_R                                       $8      !0, ->22
         16    > > FE_FETCH_R                                               $8, !1, ->22
   21    17    >   CONCAT                                           ~9      'case+', !1
         18        CONCAT                                           ~10     ~9, '%3A'
         19        CONCAT                                           ~11     ~10, '%0A'
         20        ECHO                                                     ~11
   20    21      > JMP                                                      ->16
         22    >   FE_FREE                                                  $8
   22    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
201.87 ms | 1400 KiB | 19 Q