3v4l.org

run code in 300+ PHP versions simultaneously
<?php $errors = new class { protected $errors = []; function __toString() : string { return EOL . "Problems: ========================" . EOL . EOL . implode(EOL, $this->errors) . EOL ; } function __count() : int { return count($this->errors); } function add(string $error){ $this->errors[] = $error; } function all() : array { $this->errors; } } ; var_dump(count($errors)); var_dump($errors);

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.40.0110.00418.64
8.3.30.0070.00718.70
8.3.20.0040.00420.34
8.3.10.0080.00023.50
8.3.00.0040.00423.53
8.2.170.0170.00322.96
8.2.160.0100.00720.29
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00621.11
8.2.120.0030.00626.35
8.2.110.0030.00622.08
8.2.100.0090.00318.00
8.2.90.0000.00819.22
8.2.80.0050.00318.05
8.2.70.0070.00417.63
8.2.60.0080.00317.93
8.2.50.0050.00318.07
8.2.40.0040.00422.38
8.2.30.0040.00420.62
8.2.20.0030.00617.75
8.2.10.0070.00018.06
8.2.00.0000.00817.96
8.1.270.0140.00720.24
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0090.00022.48
8.1.230.0040.00819.09
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00818.49
8.1.160.0040.00420.68
8.1.150.0040.00418.89
8.1.140.0090.00019.47
8.1.130.0030.00317.59
8.1.120.0000.00717.51
8.1.110.0020.00517.49
8.1.100.0040.00417.53
8.1.90.0000.00717.34
8.1.80.0000.00717.52
8.1.70.0030.00517.51
8.1.60.0000.00817.52
8.1.50.0000.00817.54
8.1.40.0000.00817.55
8.1.30.0040.00417.54
8.1.20.0040.00417.66
8.1.10.0040.00417.56
8.1.00.0050.00217.45
8.0.300.0000.00818.77
8.0.290.0040.00416.74
8.0.280.0000.00718.48
8.0.270.0050.00217.18
8.0.260.0030.00317.22
8.0.250.0000.00716.93
8.0.240.0080.00216.97
8.0.230.0040.00416.90
8.0.220.0000.01116.88
8.0.210.0070.00016.92
8.0.200.0030.00317.02
8.0.190.0050.00217.08
8.0.180.0000.00716.95
8.0.170.0000.01016.96
8.0.160.0040.00416.88
8.0.150.0000.00716.82
8.0.140.0070.00316.94
8.0.130.0060.00013.43
8.0.120.0040.00416.98
8.0.110.0040.00416.95
8.0.100.0000.00916.80
8.0.90.0030.00316.93
8.0.80.0060.00916.98
8.0.70.0040.00416.91
8.0.60.0040.00416.96
8.0.50.0040.00416.99
8.0.30.0060.01217.21
8.0.20.0080.01117.40
8.0.10.0040.00417.10
8.0.00.0100.01116.73
7.4.330.0050.00016.79
7.4.320.0070.00016.50
7.4.300.0030.00316.52
7.4.290.0050.00216.53
7.4.280.0040.00416.63
7.4.270.0040.00416.61
7.4.260.0030.00516.60
7.4.250.0000.00716.59
7.4.240.0020.00516.62
7.4.230.0000.00716.71
7.4.220.0060.01116.64
7.4.210.0030.01116.61
7.4.200.0040.00416.39
7.4.160.0030.01216.73
7.4.150.0040.01417.40
7.4.140.0100.00817.86
7.4.130.0080.00916.48
7.4.120.0120.00916.54
7.4.110.0140.00716.54
7.4.100.0060.01216.47
7.4.90.0150.00916.74
7.4.80.0120.00619.39
7.4.70.0070.01016.65
7.4.60.0100.00716.63
7.4.50.0030.01216.47
7.4.40.0060.01216.57
7.4.30.0110.01116.59
7.4.00.0160.00015.03
7.3.330.0030.00313.12
7.3.320.0000.00513.17
7.3.310.0050.00316.29
7.3.300.0000.00716.17
7.3.290.0090.00816.25
7.3.280.0100.00716.28
7.3.270.0120.00917.40
7.3.260.0100.00716.32
7.3.250.0080.00916.31
7.3.240.0070.01116.36
7.3.230.0120.01016.50
7.3.210.0040.01216.44
7.3.200.0100.00716.36
7.3.190.0070.01016.43
7.3.180.0100.01016.26
7.3.170.0030.01316.28
7.3.160.0100.00716.39
7.2.330.0100.01016.43
7.2.320.0110.00816.77
7.2.310.0170.00616.55
7.2.300.0030.01516.64
7.2.290.0070.01016.43
7.2.60.0060.00916.83
7.2.00.0060.00919.18
7.1.200.0060.00615.71
7.1.100.0060.00617.92
7.1.70.0000.00717.21
7.1.60.0030.02119.52
7.1.50.0030.01716.96
7.1.00.0030.07722.29
7.0.200.0000.01016.47
7.0.60.0030.07019.87
7.0.50.0100.07717.89
7.0.40.0130.07320.24
7.0.30.0170.04020.26
7.0.20.0270.06020.22
7.0.10.0100.08720.09
7.0.00.0030.09320.20
5.6.280.0070.03020.95
5.6.210.0070.04320.72
5.6.200.0130.04718.29
5.6.190.0070.04720.52
5.6.180.0130.04320.68
5.6.170.0200.04720.44
5.6.160.0170.07720.46
5.6.150.0130.07018.19
5.6.140.0030.09018.29
5.6.130.0030.05018.21
5.6.120.0030.06321.04
5.6.110.0200.07321.02
5.6.100.0130.07721.04
5.6.90.0070.08720.98
5.6.80.0130.04720.48
5.5.350.0270.07020.36
5.5.340.0030.04718.08
5.5.330.0130.07720.19
5.5.320.0600.07020.34
5.5.310.0230.08320.27
5.5.300.0070.06018.03
5.5.290.0000.06718.04
5.5.280.0100.08020.89
5.5.270.0070.04720.72
5.5.260.0130.04720.79
5.5.250.0070.06320.70
5.5.240.0300.04320.14

preferences:
59.43 ms | 400 KiB | 5 Q