3v4l.org

run code in 300+ PHP versions simultaneously
<?php $consts = get_defined_constants(); $consts = array_keys($consts); usort($consts,function($a,$b){return (int)(strlen($a)<strlen($b));}); foreach($consts as $const){ echo strlen($const).": ".$const."\n"; }

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/MP2IF
function name:  (null)
number of ops:  22
compiled vars:  !0 = $consts, !1 = $const
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'get_defined_constants'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    3     3        INIT_FCALL                                               'array_keys'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    4     7        INIT_FCALL                                               'usort'
          8        SEND_REF                                                 !0
          9        DECLARE_LAMBDA_FUNCTION                          ~6      [0]
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                                 
    5    12      > FE_RESET_R                                       $8      !0, ->20
         13    > > FE_FETCH_R                                               $8, !1, ->20
    6    14    >   STRLEN                                           ~9      !1
         15        CONCAT                                           ~10     ~9, '%3A+'
         16        CONCAT                                           ~11     ~10, !1
         17        CONCAT                                           ~12     ~11, '%0A'
         18        ECHO                                                     ~12
    5    19      > JMP                                                      ->13
         20    >   FE_FREE                                                  $8
    7    21      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MP2IF
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        STRLEN                                           ~2      !0
          3        STRLEN                                           ~3      !1
          4        IS_SMALLER                                       ~4      ~2, ~3
          5        CAST                                          4  ~5      ~4
          6      > RETURN                                                   ~5
          7*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.89 ms | 1440 KiB | 16 Q