3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler( static fn (int $errno, string $errstr): bool => $errstr === 'Trying to access array offset on value of type null' ); echo null[1]; echo "foo"[4];

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.4.130.0050.00318.52
8.4.120.0040.00423.94
8.4.110.0130.00520.27
8.4.100.0130.00518.93
8.4.90.0050.00622.52
8.4.80.0040.00518.77
8.4.70.0110.00918.07
8.4.60.0130.00618.84
8.4.50.0110.00919.79
8.4.40.0090.01017.85
8.4.30.0080.01218.92
8.4.20.0070.01417.77
8.4.10.0090.00019.51
8.3.260.0130.00616.54
8.3.250.0100.00918.82
8.3.240.0090.01017.36
8.3.230.0140.00516.70
8.3.220.0100.00719.04
8.3.210.0050.00318.59
8.3.200.0040.00516.55
8.3.190.0030.00518.43
8.3.180.0090.00918.80
8.3.170.0190.00019.02
8.3.160.0080.00016.82
8.3.150.0170.00316.52
8.3.140.0030.00716.93
8.3.130.0080.00018.65
8.3.120.0130.00318.91
8.3.110.0050.00320.94
8.3.100.0230.00330.80
8.3.90.0100.00632.15
8.3.80.0210.00327.75
8.3.70.0150.01227.98
8.3.60.0160.00627.02
8.3.50.0150.00427.18
8.3.40.0140.00626.98
8.3.30.0120.00725.82
8.3.20.0120.00428.40
8.3.10.0130.00328.64
8.3.00.0120.00728.13
8.2.290.0130.00520.67
8.2.280.0040.01020.41
8.2.270.0000.00818.73
8.2.260.0030.00616.63
8.2.250.0080.00016.61
8.2.240.0030.00617.11
8.2.230.0060.00322.58
8.2.220.0090.00437.54
8.2.210.0180.00232.15
8.2.200.0120.00527.08
8.2.190.0120.00827.91
8.2.180.0140.00726.96
8.2.170.0120.00725.66
8.2.160.0100.00927.46
8.2.150.0110.00427.98
8.2.140.0100.00628.12
8.2.130.0100.00828.42
8.2.120.0150.00726.91
8.2.110.0200.00427.42
8.2.100.0150.00827.08
8.2.90.0140.00726.31
8.2.80.0170.00527.11
8.2.70.0100.00726.91
8.2.60.0160.00626.99
8.2.50.0120.00726.94
8.2.40.0100.00526.95
8.2.30.0100.00526.96
8.2.20.0140.00726.97
8.2.10.0130.00626.91
8.2.00.0110.00826.91
8.1.330.0100.00921.77
8.1.320.0080.01016.16
8.1.310.0080.00018.17
8.1.300.0030.00616.10
8.1.290.0090.00834.19
8.1.280.0090.00831.73
8.1.270.0090.00628.69
8.1.260.0110.00528.79
8.1.250.0110.00729.14
8.1.240.0090.00826.88
8.1.230.0100.00626.89
8.1.220.0140.00626.90
8.1.210.0140.00627.09
8.1.200.0100.00526.92
8.1.190.0140.00626.89
8.1.180.0110.00826.80
8.1.170.0160.00326.89
8.1.160.0110.00726.88
8.1.150.0160.00326.93
8.1.140.0140.00526.86
8.1.130.0130.00526.84
8.1.120.0120.00726.86
8.1.110.0100.00826.82
8.1.100.0140.00327.09
8.1.90.0150.00526.80
8.1.80.0120.00427.14
8.1.70.0150.00426.93
8.1.60.0140.00426.89
8.1.50.0110.00826.88
8.1.40.0100.00626.89
8.1.30.0090.00426.99
8.1.20.0060.00927.15
8.1.10.0140.00326.54
8.1.00.0130.00526.53
8.0.300.0160.00426.22
8.0.290.0150.00525.87
8.0.280.0170.00425.88
8.0.270.0120.00526.23
8.0.260.0140.00526.26
8.0.250.0120.00626.23
8.0.240.0130.00626.27
8.0.230.0140.00226.25
8.0.220.0140.00526.25
8.0.210.0180.00426.22
8.0.200.0150.00725.93
8.0.190.0150.00525.92
8.0.180.0140.00725.88
8.0.170.0130.00825.91
8.0.160.0130.00525.94
8.0.150.0110.00725.86
8.0.140.0150.00625.86
8.0.130.0130.00525.85
8.0.120.0150.00425.88
8.0.110.0130.00525.93
8.0.100.0110.00525.89
8.0.90.0110.00725.88
8.0.80.0110.00825.88
8.0.70.0100.00426.28
8.0.60.0110.00925.90
8.0.50.0090.00925.93
8.0.30.0070.00526.25
8.0.20.0090.00525.93
8.0.10.0150.00425.94

preferences:
26.48 ms | 403 KiB | 5 Q