3v4l.org

run code in 300+ PHP versions simultaneously
<?php class HelloWorld { /** * @var array<string, array{stdClass, int}> */ public array $detectedCheat = []; //If this function is actually executed, the php warning is obtained. public function test(): void { $this->detectedCheat["playerName"][1]++;//error } } (new helloworld())->test();

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.70.0130.00616.63
8.3.60.0150.00017.00
8.3.50.0060.00919.96
8.3.40.0070.00720.48
8.3.30.0110.00418.70
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0000.01026.16
8.2.190.0120.00316.75
8.2.180.0040.01225.92
8.2.170.0110.00319.03
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.25
8.2.110.0080.00419.27
8.2.100.0080.00417.91
8.2.90.0050.00317.97
8.2.80.0060.00317.97
8.2.70.0000.00817.50
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0030.00718.21
8.2.30.0030.00518.11
8.2.20.0000.00820.46
8.2.10.0000.00817.69
8.2.00.0040.00419.09
8.1.280.0090.00625.92
8.1.270.0040.00422.06
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0050.00519.16
8.1.230.0000.01021.04
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0040.00418.55
8.1.160.0050.00318.83
8.1.150.0040.00418.63
8.1.140.0030.00617.39
8.1.130.0000.00718.68
8.1.120.0050.00317.40
8.1.110.0000.00817.31
8.1.100.0040.00417.42
8.1.90.0040.00417.43
8.1.80.0000.00917.43
8.1.70.0070.00017.40
8.1.60.0080.00017.58
8.1.50.0030.00517.41
8.1.40.0080.00017.41
8.1.30.0000.00817.62
8.1.20.0030.00617.61
8.1.10.0050.00217.36
8.1.00.0040.00417.46
8.0.300.0000.00720.09
8.0.290.0060.00316.75
8.0.280.0000.00718.46
8.0.270.0030.00316.94
8.0.260.0080.00018.45
8.0.250.0030.00317.04
8.0.240.0050.00316.96
8.0.230.0040.00417.06
8.0.220.0000.00616.86
8.0.210.0040.00416.98
8.0.200.0030.00717.00
8.0.190.0040.00416.88
8.0.180.0080.00016.91
8.0.170.0070.00317.00
8.0.160.0000.00716.93
8.0.150.0000.00716.88
8.0.140.0040.00416.79
8.0.130.0050.00217.02
8.0.120.0000.00716.99
8.0.110.0000.00716.96
8.0.100.0050.00316.86
8.0.90.0000.00717.01
8.0.80.0070.00016.96
8.0.70.0000.00816.99
8.0.60.0000.00716.94
8.0.50.0000.00816.84
8.0.30.0030.00316.95
8.0.20.0070.00016.95
8.0.10.0030.00316.97
7.4.330.0000.00415.55
7.4.320.0030.00316.55
7.4.300.0030.00316.48
7.4.290.0060.00316.53
7.4.280.0030.00516.55
7.4.270.0030.00316.57
7.4.260.0000.00716.55
7.4.250.0000.00716.44
7.4.240.0030.00316.35
7.4.230.0000.00716.55
7.4.220.0000.00716.48
7.4.210.0000.00616.48
7.4.200.0000.00716.58
7.4.190.0070.00016.64
7.4.180.0000.00716.53
7.4.160.0030.00316.63
7.4.150.0030.00316.48
7.4.140.0030.00316.44
7.4.130.0080.00016.56
7.4.120.0000.00816.44
7.4.110.0000.00816.23
7.4.100.0070.00016.58
7.4.90.0070.00016.41
7.4.80.0030.00516.50
7.4.70.0030.00616.21
7.4.60.0050.00316.42
7.4.50.0030.00316.25
7.4.40.0040.00416.48
7.4.30.0040.00416.50
7.4.20.0030.00316.28
7.4.10.0070.00016.31
7.4.00.0030.00316.55

preferences:
18.57 ms | 401 KiB | 5 Q