3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __toString() { $exception = new Exception('foo'); trigger_error((string) $exception, E_USER_ERROR); } } $foo = new Foo; echo $foo;

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.20.0100.01017.65
8.4.10.0060.00318.00
8.3.150.0030.01617.05
8.3.140.0090.00916.57
8.3.130.0030.00616.82
8.3.120.0000.00820.57
8.3.110.0040.00420.94
8.3.100.0000.01024.06
8.3.90.0040.00426.77
8.3.80.0030.00618.56
8.3.70.0090.00616.50
8.3.60.0110.00418.55
8.3.50.0150.00321.93
8.3.40.0130.00718.92
8.3.30.0030.01018.77
8.3.20.0000.00820.30
8.3.10.0040.00421.67
8.3.00.0000.00720.83
8.2.270.0110.01116.61
8.2.260.0040.00418.88
8.2.250.0180.00416.55
8.2.240.0130.00317.19
8.2.230.0070.00322.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0060.00316.50
8.2.190.0170.00316.58
8.2.180.0070.01418.29
8.2.170.0170.00022.96
8.2.160.0100.00720.38
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0110.00319.83
8.2.110.0030.00720.26
8.2.100.0080.00417.84
8.2.90.0050.00219.08
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0060.00317.93
8.2.50.0050.00518.07
8.2.40.0030.00518.22
8.2.30.0020.00517.90
8.2.20.0000.00817.55
8.2.10.0040.00417.97
8.2.00.0060.00317.58
8.1.310.0100.01016.75
8.1.300.0120.00616.90
8.1.290.0060.00330.84
8.1.280.0140.00425.92
8.1.270.0120.00318.67
8.1.260.0000.00726.35
8.1.250.0060.00328.09
8.1.240.0040.00422.54
8.1.230.0060.00620.86
8.1.220.0080.00018.77
8.1.210.0000.00718.92
8.1.200.0000.00917.35
8.1.190.0000.00817.22
8.1.180.0000.00818.10
8.1.170.0000.00818.46
8.1.160.0040.00421.94
8.1.150.0000.00718.88
8.1.140.0040.00417.50
8.1.130.0070.00017.82
8.1.120.0030.00317.47
8.1.110.0040.00417.45
8.1.100.0040.00417.32
8.1.90.0040.00417.50
8.1.80.0000.00717.44
8.1.70.0000.00717.38
8.1.60.0000.00817.60
8.1.50.0040.00417.48
8.1.40.0000.00817.41
8.1.30.0030.00617.63
8.1.20.0050.00217.65
8.1.10.0040.00417.53
8.1.00.0050.00317.47
8.0.300.0000.00720.02
8.0.290.0040.00416.88
8.0.280.0000.00718.38
8.0.270.0040.00418.68
8.0.260.0040.00417.24
8.0.250.0040.00417.01
8.0.240.0050.00317.02
8.0.230.0030.00316.93
8.0.220.0030.00316.84
8.0.210.0040.00316.96
8.0.200.0000.00816.89
8.0.190.0000.00716.94
8.0.180.0040.00416.98
8.0.170.0000.00817.02
8.0.160.0000.00717.00
8.0.150.0040.00416.82
8.0.140.0030.00316.93
8.0.130.0030.00313.45
8.0.120.0080.00016.95
8.0.110.0080.00016.99
8.0.100.0000.00717.05
8.0.90.0070.00017.01
8.0.80.0120.00716.87
8.0.70.0070.00016.84
8.0.60.0030.00516.99
8.0.50.0050.00216.95
8.0.30.0060.01216.98
8.0.20.0080.01117.40
8.0.10.0000.00716.94
8.0.00.0090.00916.76
7.4.330.0030.00315.03
7.4.320.0070.00016.64
7.4.300.0000.00616.41
7.4.290.0070.00016.48
7.4.280.0050.00216.59
7.4.270.0000.00616.59
7.4.260.0030.00313.27
7.4.250.0040.00416.45
7.4.240.0050.00216.54
7.4.230.0070.00016.49
7.4.220.0030.00316.47
7.4.210.0080.00816.57
7.4.200.0070.00016.65
7.4.160.0080.00816.47
7.4.150.0140.00317.40
7.4.140.0070.01217.86
7.4.130.0050.01316.40
7.4.120.0100.00816.46
7.4.110.0030.01916.72
7.4.100.0140.00316.61
7.4.90.0100.01316.46
7.4.80.0100.00719.39
7.4.70.0030.01616.43
7.4.60.0120.00616.50
7.4.50.0030.00516.37
7.4.40.0130.00416.72
7.4.30.0100.01016.62
7.4.00.0070.01114.88
7.3.330.0050.00313.23
7.3.320.0000.00613.16
7.3.310.0040.00416.27
7.3.300.0070.00016.21
7.3.290.0060.01016.32
7.3.280.0080.01016.28
7.3.270.0110.00417.40
7.3.260.0070.01116.36
7.3.250.0140.00316.39
7.3.240.0090.00616.34
7.3.230.0070.01316.39
7.3.210.0150.00316.39
7.3.200.0170.00019.39
7.3.190.0030.01216.52
7.3.180.0110.00416.37
7.3.170.0100.00716.33
7.3.160.0090.00616.37
7.2.330.0030.01616.63
7.2.320.0140.01116.51
7.2.310.0100.00916.51
7.2.300.0060.00916.52
7.2.290.0130.00316.43
7.2.60.0060.00816.66
7.2.00.0000.00919.04
7.1.200.0100.00315.76
7.1.100.0190.01017.83
7.1.70.0000.00717.16
7.1.60.0090.01519.22
7.1.50.0070.01316.64
7.1.00.0000.08022.43
7.0.200.0030.00516.40
7.0.140.0000.05022.07
7.0.60.0030.07321.73
7.0.50.0070.08017.88
7.0.40.0130.08020.24
7.0.30.0230.05020.15
7.0.20.0300.07320.24
7.0.10.0030.06320.13
7.0.00.0100.06320.20
5.6.280.0070.07020.91
5.6.210.0030.04320.46
5.6.200.0070.03718.14
5.6.190.0130.07720.77
5.6.180.0270.07320.55
5.6.170.0200.04720.53
5.6.160.0000.04320.47
5.6.150.0100.06318.19
5.6.140.0170.07318.28
5.6.130.0100.03718.17
5.6.120.0030.04721.13
5.6.110.0100.07720.99
5.6.100.0000.04320.96
5.6.90.0070.08721.10
5.6.80.0100.07720.51
5.5.350.0100.07020.44
5.5.340.0070.06017.96
5.5.330.0070.05320.38
5.5.320.0200.04720.34
5.5.310.0300.07320.26
5.5.300.0000.04317.98
5.5.290.0100.08017.98
5.5.280.0170.06020.68
5.5.270.0030.06020.67
5.5.260.0030.04020.86
5.5.250.0130.07320.67
5.5.240.0200.07320.29
5.4.450.0030.05719.48
5.4.440.0130.04319.33
5.4.430.0070.03719.24
5.4.420.0170.07019.39
5.4.410.0070.04019.43
5.4.400.0000.06318.88
5.4.390.0100.08019.14
5.4.380.0000.05018.86
5.4.370.0130.07018.97
5.4.360.0130.06719.11
5.4.350.0000.07019.08
5.4.340.0000.05718.98
5.4.320.0070.08018.85
5.4.310.0200.06319.24
5.4.300.0030.06018.88
5.4.290.0100.03319.11
5.4.280.0100.07719.16
5.4.270.0130.07019.14
5.4.260.0100.03319.00
5.4.250.0100.07319.23
5.4.240.0070.04719.14
5.4.230.0100.04319.24
5.4.220.0100.04019.14
5.4.210.0030.04719.23
5.4.200.0000.04019.07
5.4.190.0100.06318.83
5.4.180.0170.06318.96
5.4.170.0070.04719.13
5.4.160.0000.08019.13
5.4.150.0070.06019.13
5.4.140.0070.04316.38
5.4.130.0070.07016.49
5.4.120.0000.07016.34
5.4.110.0030.07016.39
5.4.100.0030.04716.47
5.4.90.0070.05716.37
5.4.80.0070.07316.47
5.4.70.0100.06716.26
5.4.60.0030.03716.45
5.4.50.0070.07316.35
5.4.40.0030.04316.40
5.4.30.0070.04316.38
5.4.20.0030.03316.31
5.4.10.0070.03316.25
5.4.00.0000.04315.98
5.3.290.0070.07314.73
5.3.280.0070.08014.64
5.3.270.0100.05014.53
5.3.260.0200.06314.61
5.3.250.0130.05714.76
5.3.240.0030.05714.59
5.3.230.0030.07314.63
5.3.220.0130.04314.59
5.3.210.0100.04014.56
5.3.200.0030.06714.61
5.3.190.0070.07714.63
5.3.180.0030.04714.59
5.3.170.0100.03314.55
5.3.160.0070.07714.59
5.3.150.0100.07014.55
5.3.140.0030.05014.70
5.3.130.0070.08014.56
5.3.120.0070.04014.60
5.3.110.0000.08714.60
5.3.100.0000.04314.07
5.3.90.0200.02014.07
5.3.80.0030.04014.02
5.3.70.0030.04014.02
5.3.60.0000.03714.06
5.3.50.0030.03714.00
5.3.40.0030.03714.09
5.3.30.0030.03313.87
5.3.20.0000.03713.69
5.3.10.0000.03713.65
5.3.00.0000.03713.61
5.2.170.0000.03011.07
5.2.160.0030.02711.21
5.2.150.0070.02311.20
5.2.140.0030.02711.14
5.2.130.0030.02711.16
5.2.120.0030.03011.11
5.2.110.0000.03011.15
5.2.100.0000.03311.24
5.2.90.0000.03011.14
5.2.80.0130.01711.06
5.2.70.0000.03011.10
5.2.60.0100.02711.11
5.2.50.0030.02710.98
5.2.40.0000.03011.14
5.2.30.0030.02711.12
5.2.20.0000.03010.95
5.2.10.0030.03010.86
5.2.00.0000.03010.60
5.1.60.0000.0309.90
5.1.50.0030.0239.98
5.1.40.0070.02010.04
5.1.30.0000.02710.38
5.1.20.0000.03010.40
5.1.10.0000.02710.11
5.1.00.0000.0279.98
5.0.50.0000.0209.01
5.0.40.0030.0179.01
5.0.30.0030.0279.01
5.0.20.0000.0209.01
5.0.10.0030.0179.01
5.0.00.0000.0339.01
4.4.90.0030.0139.01
4.4.80.0000.0179.01
4.4.70.0000.0179.01
4.4.60.0000.0179.01
4.4.50.0000.0179.01
4.4.40.0000.0239.01
4.4.30.0000.0179.01
4.4.20.0000.0179.01
4.4.10.0030.0139.01
4.4.00.0000.0239.01
4.3.110.0000.0179.01
4.3.100.0000.0179.01
4.3.90.0000.0139.01
4.3.80.0000.0239.01
4.3.70.0030.0139.01
4.3.60.0030.0109.01
4.3.50.0030.0179.01
4.3.40.0070.0179.01
4.3.30.0030.0109.01
4.3.20.0030.0109.01
4.3.10.0030.0109.01
4.3.00.0000.0139.01

preferences:
29.61 ms | 403 KiB | 5 Q