3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __destruct() { echo 'destruct'; } public function __construct() { echo 'Exception'; throw new Exception(); } } echo 'start'; new Test();

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.0070.01416.50
8.3.50.0110.00622.05
8.3.40.0140.00719.02
8.3.30.0070.00718.76
8.3.20.0040.00420.21
8.3.10.0040.00423.65
8.3.00.0080.00019.25
8.2.180.0090.00918.41
8.2.170.0090.00622.96
8.2.160.0120.00320.15
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0100.00017.50
8.2.110.0040.00421.05
8.2.100.0110.00018.05
8.2.90.0050.00319.16
8.2.80.0000.00917.97
8.2.70.0030.00617.50
8.2.60.0000.00718.04
8.2.50.0050.00518.07
8.2.40.0000.00819.41
8.2.30.0040.00420.67
8.2.20.0060.00317.74
8.2.10.0000.00818.11
8.2.00.0000.00717.92
8.1.280.0140.00325.92
8.1.270.0040.00423.96
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0070.00321.24
8.1.230.0070.00317.42
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0080.00417.23
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0060.00318.95
8.1.160.0000.00721.96
8.1.150.0000.00718.86
8.1.140.0000.00819.50
8.1.130.0030.00317.53
8.1.120.0040.00417.34
8.1.110.0030.00517.39
8.1.100.0040.00417.44
8.1.90.0030.00617.38
8.1.80.0040.00417.36
8.1.70.0000.00717.38
8.1.60.0030.00617.46
8.1.50.0060.00317.41
8.1.40.0050.00317.39
8.1.30.0030.00517.51
8.1.20.0000.00717.48
8.1.10.0030.00617.48
8.1.00.0080.00017.32
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0070.00018.34
8.0.270.0070.00017.24
8.0.260.0000.00617.31
8.0.250.0040.00416.98
8.0.240.0040.00417.00
8.0.230.0070.00016.87
8.0.220.0040.00416.91
8.0.210.0030.00316.91
8.0.200.0060.00016.83
8.0.190.0030.00516.95
8.0.180.0020.00516.86
8.0.170.0040.00416.93
8.0.160.0050.00216.93
8.0.150.0000.00816.84
8.0.140.0000.00816.79
8.0.130.0030.00313.39
8.0.120.0030.00716.88
8.0.110.0040.00417.00
8.0.100.0000.00716.90
8.0.90.0000.00816.88
8.0.80.0090.00916.86
8.0.70.0000.00716.84
8.0.60.0000.00716.77
8.0.50.0040.00416.74
8.0.30.0100.01017.17
8.0.20.0130.00917.40
8.0.10.0040.00416.85
8.0.00.0100.01016.80
7.4.330.0050.00015.08
7.4.320.0000.00716.43
7.4.300.0000.00616.42
7.4.290.0070.00016.41
7.4.280.0040.00416.51
7.4.270.0040.00416.44
7.4.260.0070.00016.38
7.4.250.0050.00216.41
7.4.240.0040.00416.49
7.4.230.0070.00016.46
7.4.220.0030.01216.53
7.4.210.0090.00616.45
7.4.200.0030.00316.51
7.4.160.0040.01216.27
7.4.150.0110.00717.40
7.4.140.0100.00917.86
7.4.130.0090.00816.66
7.4.120.0070.00916.50
7.4.110.0110.00616.50
7.4.100.0120.00616.50
7.4.90.0030.01316.21
7.4.80.0090.01419.39
7.4.70.0170.00016.70
7.4.60.0100.00616.39
7.4.50.0030.00516.32
7.4.40.0120.00416.46
7.4.30.0200.00316.52
7.4.00.0070.01014.89
7.3.330.0030.00313.38
7.3.320.0030.00313.14
7.3.310.0070.00016.35
7.3.300.0000.00716.22
7.3.290.0090.00916.31
7.3.280.0090.00816.28
7.3.270.0130.00317.40
7.3.260.0090.00916.48
7.3.250.0100.00616.34
7.3.240.0120.00616.37
7.3.230.0060.01216.39
7.3.210.0180.00316.56
7.3.200.0150.00316.35
7.3.190.0040.01316.46
7.3.180.0030.01316.34
7.3.170.0140.00316.41
7.3.160.0100.00716.63
7.3.120.0000.01814.93
7.3.110.0140.00314.74
7.3.100.0060.00914.72
7.3.90.0000.00814.77
7.3.80.0000.01414.62
7.3.70.0060.00614.76
7.3.60.0070.00414.82
7.3.50.0060.01014.77
7.3.40.0030.01014.58
7.3.30.0040.01114.73
7.3.20.0090.00616.56
7.3.10.0050.00716.44
7.3.00.0080.00516.54
7.2.330.0130.00316.66
7.2.320.0100.01016.40
7.2.310.0030.01316.66
7.2.300.0100.00716.69
7.2.290.0070.01416.75
7.2.250.0110.00814.82
7.2.240.0100.00715.10
7.2.230.0000.01415.12
7.2.220.0030.01015.16
7.2.210.0070.00715.10
7.2.200.0040.00814.91
7.2.190.0040.01415.06
7.2.180.0060.00314.90
7.2.170.0040.01114.98
7.2.130.0040.01116.91
7.2.120.0070.00316.84
7.2.110.0070.00416.89
7.2.100.0070.00716.85
7.2.90.0030.01216.77
7.2.80.0110.00416.65
7.2.70.0040.00816.75
7.2.60.0080.00816.75
7.2.50.0070.00717.03
7.2.40.0080.00416.63
7.2.30.0070.00416.75
7.2.20.0100.00716.35
7.2.10.0140.00316.45
7.2.00.0060.00818.07
7.1.330.0040.01215.80
7.1.320.0060.00615.45
7.1.310.0080.00815.68
7.1.300.0100.00315.55
7.1.290.0000.01515.65
7.1.280.0040.00815.71
7.1.270.0060.00615.70
7.1.260.0030.00615.51
7.1.250.0000.01015.86
7.1.200.0040.00715.74
7.1.100.0070.01117.63
7.1.70.0000.01017.14
7.1.60.0100.01319.43
7.1.50.0110.00016.55
7.1.00.0030.07322.44
7.0.200.0550.01014.63
7.0.60.0100.08019.91
7.0.50.0070.04317.86
7.0.40.0100.06320.38
7.0.30.0000.04320.13
7.0.20.0270.05320.09
7.0.10.0030.05020.09
7.0.00.0030.07320.10
5.6.280.0000.03321.12
5.6.210.0000.04720.54
5.6.200.0070.07018.23
5.6.190.0070.04020.60
5.6.180.0470.05720.52
5.6.170.0200.06020.57
5.6.160.0100.07720.47
5.6.150.0100.04018.15
5.6.140.0000.08718.23
5.6.130.0100.07018.33
5.6.120.0030.06720.99
5.6.110.0170.07320.89
5.6.100.0030.06321.14
5.6.90.0070.06721.10
5.6.80.0130.06320.38
5.5.350.0230.06020.38
5.5.340.0130.07318.04
5.5.330.0070.06720.57
5.5.320.0270.04320.23
5.5.310.0200.03720.32
5.5.300.0030.05717.92
5.5.290.0130.04718.05
5.5.280.0100.04320.78
5.5.270.0170.07320.62
5.5.260.0230.06720.68
5.5.250.0070.08720.58
5.5.240.0000.08020.27
5.4.450.0400.07319.39
5.4.440.0130.06019.18
5.4.430.0700.06319.30
5.4.420.0070.06719.42
5.4.410.0600.07019.58
5.4.400.0600.05319.36
5.4.390.0500.05319.13
5.4.380.0530.06019.28
5.4.370.0570.05719.06
5.4.360.0570.05319.27
5.4.350.0270.06019.25
5.4.340.0200.05719.28
5.4.320.0470.05719.29
5.4.310.0170.05319.01
5.4.300.0370.05319.13
5.4.290.0430.05719.13
5.4.280.0500.05319.21
5.4.270.0600.05019.01
5.4.260.0670.04019.24
5.4.250.0570.05318.86
5.4.240.0400.05719.06
5.4.230.0330.06319.09
5.4.220.0230.05719.05
5.4.210.0200.05319.23
5.4.200.0130.06719.00
5.4.190.0170.06719.00
5.4.180.0230.06019.09
5.4.170.0170.06719.00
5.4.160.0270.05319.26
5.4.150.0130.06719.25
5.4.140.0270.05716.32
5.4.130.0300.04716.41
5.4.120.0230.05016.34
5.4.110.0300.06016.24
5.4.100.0270.06016.50
5.4.90.0200.07016.60
5.4.80.0200.05716.15
5.4.70.0400.05316.59
5.4.60.0170.05716.58
5.4.50.0200.05316.58
5.4.40.0270.05716.53
5.4.30.0200.05716.55
5.4.20.0130.06716.48
5.4.10.0200.05016.40
5.4.00.0330.07316.02

preferences:
70.1 ms | 401 KiB | 5 Q