3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function __toString() { throw new \Exception('My err mes'); } } $d = new Foo(); (string) $d;

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.60.0030.01718.43
8.3.50.0080.01021.21
8.3.40.0120.00618.97
8.3.30.0120.00318.62
8.3.20.0060.00320.04
8.3.10.0080.00023.48
8.3.00.0040.00423.61
8.2.180.0150.00716.50
8.2.170.0070.00722.96
8.2.160.0070.00720.43
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0050.00319.83
8.2.120.0070.00026.35
8.2.110.0030.00619.21
8.2.100.0030.00917.84
8.2.90.0000.00819.23
8.2.80.0000.00918.16
8.2.70.0060.00317.59
8.2.60.0080.00017.80
8.2.50.0080.00018.07
8.2.40.0030.01020.13
8.2.30.0000.00919.48
8.2.20.0040.00417.64
8.2.10.0070.00018.15
8.2.00.0030.00317.92
8.1.280.0040.01425.92
8.1.270.0080.00023.99
8.1.260.0040.00728.09
8.1.250.0040.00428.09
8.1.240.0060.00321.43
8.1.230.0040.00717.42
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0030.00617.23
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0050.00318.55
8.1.160.0000.00720.75
8.1.150.0000.00818.88
8.1.140.0030.00619.47
8.1.130.0060.00317.70
8.1.120.0040.00417.46
8.1.110.0040.00417.44
8.1.100.0040.00417.38
8.1.90.0040.00417.45
8.1.80.0000.00717.48
8.1.70.0030.00317.33
8.1.60.0000.00817.61
8.1.50.0060.00317.53
8.1.40.0000.00817.41
8.1.30.0000.00817.63
8.1.20.0020.00517.60
8.1.10.0040.00417.62
8.1.00.0040.00417.49
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.39
8.0.270.0070.00017.23
8.0.260.0060.00017.24
8.0.250.0000.00617.03
8.0.240.0070.00016.89
8.0.230.0030.00317.01
8.0.220.0030.00716.96
8.0.210.0000.00816.96
8.0.200.0080.00017.01
8.0.190.0090.00016.98
8.0.180.0030.00516.94
8.0.170.0040.00416.90
8.0.160.0040.00416.91
8.0.150.0030.00316.76
8.0.140.0000.00716.82
8.0.130.0060.00013.33
8.0.120.0040.00416.95
8.0.110.0020.00517.00
8.0.100.0040.00416.93
8.0.90.0080.00017.01
8.0.80.0110.00316.88
8.0.70.0000.00816.76
8.0.60.0000.00716.82
8.0.50.0000.00816.95
8.0.30.0100.01017.22
8.0.20.0090.01217.41
8.0.10.0050.00216.87
8.0.00.0100.00816.74
7.4.330.0030.00316.83
7.4.320.0040.00416.57
7.4.300.0000.00716.54
7.4.290.0040.00416.41
7.4.280.0070.00316.48
7.4.270.0070.00016.59
7.4.260.0040.00416.51
7.4.250.0040.00416.45
7.4.240.0020.00616.51
7.4.230.0030.00316.62
7.4.220.0080.00816.54
7.4.210.0060.00916.69
7.4.200.0070.00016.69
7.4.160.0050.01116.45
7.4.150.0110.00717.40
7.4.140.0120.00517.86
7.4.130.0100.01116.46
7.4.120.0120.00516.69
7.4.110.0060.01216.41
7.4.100.0090.00916.44
7.4.90.0110.00716.58
7.4.80.0040.01519.39
7.4.70.0120.01216.54
7.4.60.0070.01016.46
7.4.50.0070.01116.54
7.4.40.0060.01316.53
7.4.30.0090.00916.50
7.4.00.0110.00414.99
7.3.330.0050.00013.32
7.3.320.0020.00213.34
7.3.310.0070.00016.43
7.3.300.0040.00416.23
7.3.290.0090.01016.35
7.3.280.0100.00716.36
7.3.270.0060.01017.40
7.3.260.0030.01316.61
7.3.250.0150.00416.37
7.3.240.0080.00816.37
7.3.230.0030.01416.46
7.3.210.0100.01016.48
7.3.200.0100.01119.39
7.3.190.0070.01016.33
7.3.180.0100.00616.44
7.3.170.0080.00816.55
7.3.160.0120.00616.39
7.2.330.0100.00716.49
7.2.320.0090.00916.51
7.2.310.0040.01416.52
7.2.300.0100.00716.38
7.2.290.0060.01116.77
7.2.60.0030.01016.77
7.2.00.0000.01719.44
7.1.200.0110.00015.66
7.1.100.0030.01018.22
7.1.70.0000.00717.03
7.1.60.0090.01219.27
7.1.50.0120.00916.99
7.1.00.0100.07022.45
7.0.200.0050.00216.73
7.0.60.0100.08321.84
7.0.50.0070.06317.85
7.0.40.0030.09020.30
7.0.30.0230.04720.26
7.0.20.0270.04720.05
7.0.10.0000.04720.10
7.0.00.0200.07720.09
5.6.280.0030.03321.07
5.6.210.0130.08320.66
5.6.200.0070.08318.23
5.6.190.0130.06320.61
5.6.180.0270.04320.47
5.6.170.0330.06020.58
5.6.160.0030.04020.43
5.6.150.0070.06018.23
5.6.140.0070.07718.28
5.6.130.0070.06718.24
5.6.120.0070.07021.01
5.6.110.0100.07321.03
5.6.100.0070.06320.98
5.6.90.0070.08021.13
5.6.80.0130.06020.39
5.5.350.0070.06020.41
5.5.340.0070.08318.05
5.5.330.0030.08720.29
5.5.320.0170.04720.20
5.5.310.0200.07020.26
5.5.300.0100.07317.95
5.5.290.0070.08017.98
5.5.280.0070.04020.89
5.5.270.0030.04020.87
5.5.260.0030.05320.88
5.5.250.0100.08320.59
5.5.240.0200.04720.12

preferences:
50.22 ms | 401 KiB | 5 Q