3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { new Animal(); } catch (\Error $e) { echo $e->getMessage(); } try { (new StdClass())->foo(); } catch (\Error $e) { echo $e->getMessage(); }

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.0080.00816.75
8.3.60.0140.00416.63
8.3.50.0110.00721.15
8.3.40.0090.00618.88
8.3.30.0090.00618.75
8.3.20.0070.00020.20
8.3.10.0080.00023.54
8.3.00.0080.00019.85
8.2.180.0140.00716.63
8.2.170.0070.01122.96
8.2.160.0100.00720.19
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00421.07
8.2.120.0080.00026.35
8.2.110.0100.00020.58
8.2.100.0040.00817.93
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0050.00517.63
8.2.60.0060.00318.03
8.2.50.0040.00418.07
8.2.40.0040.00422.15
8.2.30.0040.00420.57
8.2.20.0070.00017.63
8.2.10.0040.00418.10
8.2.00.0000.00718.09
8.1.280.0120.00325.92
8.1.270.0040.00420.29
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00324.02
8.1.230.0000.01117.77
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0060.00317.22
8.1.180.0040.00418.10
8.1.170.0050.00518.32
8.1.160.0000.00720.67
8.1.150.0000.00818.73
8.1.140.0050.00319.51
8.1.130.0030.00317.67
8.1.120.0030.00517.40
8.1.110.0040.00417.42
8.1.100.0040.00417.32
8.1.90.0070.00017.23
8.1.80.0040.00417.37
8.1.70.0000.00717.19
8.1.60.0080.00017.40
8.1.50.0060.00317.55
8.1.40.0030.00617.54
8.1.30.0030.00517.56
8.1.20.0000.00717.64
8.1.10.0040.00417.58
8.1.00.0030.00517.47
8.0.300.0060.00318.77
8.0.290.0070.00016.63
8.0.280.0000.00718.36
8.0.270.0030.00317.26
8.0.260.0030.00318.44
8.0.250.0040.00416.93
8.0.240.0000.00817.08
8.0.230.0000.00716.96
8.0.220.0040.00416.77
8.0.210.0040.00416.96
8.0.200.0000.00816.84
8.0.190.0030.00516.95
8.0.180.0040.00416.79
8.0.170.0040.00416.98
8.0.160.0040.00416.94
8.0.150.0080.00016.84
8.0.140.0000.00816.84
8.0.130.0060.00013.32
8.0.120.0030.00616.88
8.0.110.0000.00816.85
8.0.100.0040.00416.92
8.0.90.0040.00416.95
8.0.80.0080.00716.80
8.0.70.0040.00416.82
8.0.60.0030.00516.79
8.0.50.0000.00716.88
8.0.30.0100.00817.09
8.0.20.0100.00817.40
8.0.10.0050.00316.93
8.0.00.0090.00916.90
7.4.330.0020.00216.83
7.4.320.0070.00016.51
7.4.300.0030.00316.42
7.4.290.0040.00416.41
7.4.280.0000.00716.50
7.4.270.0000.00616.50
7.4.260.0030.00616.63
7.4.250.0000.00716.59
7.4.240.0030.00316.65
7.4.230.0030.00316.69
7.4.220.0090.00816.40
7.4.210.0070.01416.57
7.4.200.0000.00716.63
7.4.160.0080.00816.64
7.4.150.0040.01317.40
7.4.140.0090.01017.86
7.4.130.0070.01116.47
7.4.120.0130.00616.51
7.4.110.0150.00316.62
7.4.100.0130.00316.66
7.4.90.0070.01016.46
7.4.80.0030.01519.39
7.4.70.0070.01116.63
7.4.60.0100.01016.45
7.4.50.0080.00616.40
7.4.40.0130.00716.69
7.4.30.0160.00316.41
7.4.00.0030.01414.92
7.3.330.0020.00213.02
7.3.320.0000.00513.17
7.3.310.0040.00416.21
7.3.300.0000.00616.27
7.3.290.0100.00516.20
7.3.280.0120.00716.29
7.3.270.0080.00817.40
7.3.260.0200.00316.28
7.3.240.0080.00916.24
7.3.230.0110.00616.39
7.3.210.0070.01016.32
7.3.200.0030.01216.29
7.3.190.0120.02416.46
7.3.180.0120.00316.24
7.3.170.0180.00616.50
7.3.160.0130.00616.51
7.3.120.0060.01214.91
7.3.110.0040.01514.88
7.3.100.0000.01515.00
7.3.90.0090.00914.73
7.3.80.0030.01014.80
7.3.70.0000.01214.67
7.3.60.0060.00614.81
7.3.50.0060.00314.63
7.3.40.0040.00814.76
7.3.30.0030.01014.60
7.3.20.0080.00716.55
7.3.10.0090.00416.57
7.3.00.0030.01016.58
7.2.330.0100.00716.51
7.2.320.0120.00616.70
7.2.310.0140.00316.57
7.2.300.0130.01016.43
7.2.290.0000.02316.70
7.2.250.0030.01715.13
7.2.240.0070.01015.23
7.2.230.0000.01715.09
7.2.220.0040.01115.24
7.2.210.0030.00715.17
7.2.200.0030.00915.00
7.2.190.0110.00314.90
7.2.180.0070.00714.88
7.2.170.0070.00715.06
7.2.130.0060.00616.81
7.2.120.0000.01516.84
7.2.110.0030.01316.89
7.2.100.0030.01016.82
7.2.90.0110.00416.80
7.2.80.0060.00316.95
7.2.70.0100.00316.91
7.2.60.0090.00516.85
7.2.50.0090.00616.99
7.2.40.0060.00616.98
7.2.30.0030.01017.09
7.2.20.0000.01316.67
7.2.10.0000.01416.61
7.2.00.0020.01118.22
7.1.330.0140.00015.86
7.1.320.0040.00815.65
7.1.310.0110.00415.61
7.1.300.0040.00815.75
7.1.290.0060.00615.78
7.1.280.0060.00915.74
7.1.270.0040.01115.52
7.1.260.0080.00815.54
7.1.250.0070.00715.66
7.1.200.0070.00715.73
7.1.100.0060.00618.03
7.1.70.0000.00716.98
7.1.60.0100.01419.44
7.1.50.0170.00734.44
7.1.00.0030.07722.29
7.0.200.0040.00416.81
7.0.60.0170.07019.80
7.0.50.0030.04017.85
7.0.40.0070.04020.09
7.0.30.0130.05320.18
7.0.20.0330.08320.16
7.0.10.0100.08320.16
7.0.00.0030.09320.16
5.6.280.0070.03021.04
5.6.210.0030.08720.72
5.6.200.0030.06318.17
5.6.190.0030.06720.48
5.6.180.0200.03720.77
5.6.170.0330.07020.35
5.6.160.0170.05320.42
5.6.150.0030.07018.17
5.6.140.0000.09018.16
5.6.130.0070.08318.22
5.6.120.0130.07721.00
5.6.110.0100.08021.11
5.6.100.0070.04021.11
5.6.90.0130.07020.88
5.6.80.0100.08020.28
5.5.350.0030.08320.42
5.5.340.0070.03717.97
5.5.330.0070.05020.57
5.5.320.0530.03720.23
5.5.310.0200.05020.33
5.5.300.0100.07718.02
5.5.290.0030.07018.00
5.5.280.0070.04020.77
5.5.270.0100.05020.86
5.5.260.0100.04720.97
5.5.250.0100.07020.48
5.5.240.3970.04320.26

preferences:
60.81 ms | 401 KiB | 5 Q