3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { private $number; function __construct($int) { $this->number = $int; } } $i = 50; $test = array(); $string = ""; while ($i >1) { $string .= $i; $i-1; $test[] = new test($i); } echo count($test); echo "<br><br>".$string;

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 4
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 4
Branch analysis from position: 14
Branch analysis from position: 4
filename:       /in/9nII2
function name:  (null)
number of ops:  19
compiled vars:  !0 = $i, !1 = $test, !2 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, 50
   11     1        ASSIGN                                                   !1, <array>
   12     2        ASSIGN                                                   !2, ''
   13     3      > JMP                                                      ->12
   14     4    >   ASSIGN_OP                                     8          !2, !0
   15     5        SUB                                              ~7      !0, 1
          6        FREE                                                     ~7
   16     7        NEW                                              $9      'test'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
         10        ASSIGN_DIM                                               !1
         11        OP_DATA                                                  $9
   13    12    >   IS_SMALLER                                               1, !0
         13      > JMPNZ                                                    ~11, ->4
   18    14    >   COUNT                                            ~12     !1
         15        ECHO                                                     ~12
   19    16        CONCAT                                           ~13     '%3Cbr%3E%3Cbr%3E', !2
         17        ECHO                                                     ~13
         18      > RETURN                                                   1

Class test:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9nII2
function name:  __construct
number of ops:  4
compiled vars:  !0 = $int
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN_OBJ                                               'number'
          2        OP_DATA                                                  !0
    7     3      > RETURN                                                   null

End of function __construct

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.96 ms | 1394 KiB | 13 Q