3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Some { public function __construct() { echo "construct called"; } public function __destruct() { echo "destruct called"; } } $a = new Some(); unset($a);

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.0.30.0050.01317.04
8.0.20.0130.00917.40
8.0.00.0110.00616.79
7.4.150.0030.01317.40
7.4.140.0070.01017.86
7.4.130.0110.00616.48
7.4.120.0100.00716.48
7.4.110.0130.00616.67
7.4.100.0030.01316.52
7.4.90.0060.01216.65
7.4.80.0080.01219.39
7.4.70.0060.01216.24
7.4.60.0140.00316.45
7.4.50.0000.00616.44
7.4.40.0110.00422.77
7.4.30.0080.01116.70
7.4.10.0090.00915.07
7.4.00.0080.01015.06
7.3.270.0060.01117.40
7.3.260.0050.01218.24
7.3.250.0170.00316.23
7.3.240.0100.00716.35
7.3.230.0090.00916.39
7.3.210.0120.00616.28
7.3.200.0140.00919.39
7.3.190.0030.01216.21
7.3.180.0100.00616.16
7.3.170.0110.00516.27
7.3.160.0030.01616.31
7.3.130.0040.01414.75
7.3.120.0110.00714.74
7.3.110.0060.01114.66
7.3.100.0070.00614.61
7.3.90.0080.00714.70
7.3.80.0080.00814.72
7.3.70.0060.00614.61
7.3.60.0090.00614.65
7.3.50.0070.00414.73
7.3.40.0060.00714.66
7.3.30.0050.00914.57
7.3.20.0030.01016.40
7.3.10.0080.00516.63
7.3.00.0020.01216.43
7.2.330.0080.00816.77
7.2.320.0100.00716.66
7.2.310.0140.00416.44
7.2.300.0030.01316.44
7.2.290.0070.01016.31
7.2.260.0060.01314.83
7.2.250.0120.00614.78
7.2.240.0070.01014.83
7.2.230.0070.00714.90
7.2.220.0040.01014.97
7.2.210.0070.00814.91
7.2.200.0070.00714.92
7.2.190.0090.00814.87
7.2.180.0070.01014.93
7.2.170.0040.00914.93
7.2.160.0090.00614.98
7.2.150.0000.01416.89
7.2.140.0030.01016.66
7.2.130.0070.00316.64
7.2.120.0050.00817.02
7.2.110.0070.00716.90
7.2.100.0000.01116.88
7.2.90.0080.00416.93
7.2.80.0040.01116.87
7.2.70.0000.01017.03
7.2.60.0030.00716.78
7.2.50.0000.01316.97
7.2.40.0110.00717.07
7.2.30.0060.00916.73
7.2.20.0030.01316.90
7.2.10.0000.01516.87
7.2.00.0050.00918.13
7.1.330.0060.00815.76
7.1.320.0050.00815.65
7.1.310.0040.00915.62
7.1.300.0070.00915.65
7.1.290.0060.00615.52
7.1.280.0040.01015.62
7.1.270.0060.00715.62
7.1.260.0010.01015.67
7.1.250.0090.00415.69
7.1.240.0070.00715.72
7.1.230.0060.00915.71
7.1.220.0070.00715.31
7.1.210.0060.00315.48
7.1.200.0000.01315.54
7.1.190.0030.01015.69
7.1.180.0000.01015.40
7.1.170.0000.01415.63
7.1.160.0000.01315.77
7.1.150.0030.01015.53
7.1.140.0100.00615.75
7.1.130.0030.01315.42
7.1.120.0040.00715.62
7.1.110.0060.00315.75
7.1.100.0040.01016.96
7.1.90.0060.00615.67
7.1.80.0040.01115.74
7.1.70.0020.01216.38
7.1.60.0050.00916.50
7.1.50.0040.00916.05
7.1.40.0070.00615.88
7.1.30.0080.00515.95
7.1.20.0030.01016.27
7.1.10.0070.00416.12
7.1.00.0030.00815.97
7.0.330.0070.00715.21
7.0.320.0000.01115.16
7.0.310.0100.00315.11
7.0.300.0110.00415.40
7.0.290.0000.00915.43
7.0.280.0000.01115.43
7.0.270.0080.00415.11
7.0.260.0040.00815.38
7.0.250.0060.00615.20
7.0.240.0000.00915.43
7.0.230.0070.00315.50
7.0.220.0070.00315.21
7.0.210.0040.01115.34
7.0.200.0000.01115.91
7.0.190.0040.00615.95
7.0.180.0060.00515.87
7.0.170.0050.00715.77
7.0.160.0050.00815.58
7.0.150.0070.00115.76
7.0.140.0030.00715.83
7.0.130.0050.00415.95
7.0.120.0000.01216.09
7.0.110.0090.00515.71
7.0.100.0030.01015.89
7.0.90.0020.00915.95
7.0.80.0070.00516.04
7.0.70.0000.01015.83
7.0.60.0070.00415.82
7.0.50.0020.01115.88
7.0.40.0020.01014.12
7.0.30.0060.00514.21
7.0.20.0070.00714.13
7.0.10.0050.00814.13
7.0.00.0030.01014.22
5.6.400.0000.01514.34
5.6.390.0040.00714.25
5.6.380.0090.00613.98
5.6.370.0080.00614.48
5.6.360.0030.01014.42
5.6.350.0030.01014.28
5.6.340.0070.00714.20
5.6.330.0140.00314.36
5.6.320.0100.00614.35
5.6.310.0060.00614.25
5.6.300.0020.02817.33
5.6.290.0000.03317.49
5.6.280.0060.02417.58
5.6.270.0070.02417.74
5.6.260.0050.02317.68
5.6.250.0070.02417.65
5.6.240.0030.04617.71
5.6.230.0060.02617.53
5.6.220.0030.02817.44
5.6.210.0030.02417.74
5.6.200.0020.02717.61
5.6.190.0090.02517.72
5.6.180.0030.02717.66
5.6.170.0080.02217.59
5.6.160.0060.02917.49
5.6.150.0070.04517.59
5.6.140.0090.03117.55
5.6.130.0060.02517.64
5.6.120.0050.02717.66
5.6.110.0050.02817.62
5.6.100.0020.03117.63
5.6.90.0080.02617.61
5.6.80.0030.02817.40
5.6.70.0100.02817.24
5.6.60.0050.02517.24
5.6.50.0070.02517.27
5.6.40.0090.03317.40
5.6.30.0000.02917.16
5.6.20.0000.03017.17
5.6.10.0050.02817.18
5.6.00.0050.02317.24
5.5.380.0050.02215.74
5.5.370.0050.02615.89
5.5.360.0020.03316.10
5.5.350.0050.02115.89
5.5.340.0050.02416.21
5.5.330.0080.02116.15
5.5.320.0050.02516.15
5.5.310.0040.02516.38
5.5.300.0000.04015.92
5.5.290.0040.02316.19
5.5.280.0070.02616.04
5.5.270.0040.02816.20
5.5.260.0050.02616.22
5.5.250.0020.04616.01
5.5.240.0060.02115.71
5.5.230.0020.02515.77
5.5.220.0080.02315.90
5.5.210.0030.02715.73
5.5.200.0000.02515.89
5.5.190.0100.01915.76
5.5.180.0030.04115.70
5.5.170.0060.00614.00
5.5.160.0050.02415.60
5.5.150.0080.02115.87
5.5.140.0040.02215.84
5.5.130.0020.03015.67
5.5.120.0030.02715.81
5.5.110.0040.02215.81
5.5.100.0070.01815.60
5.5.90.0020.02315.73
5.5.80.0050.02315.52
5.5.70.0020.02615.64
5.5.60.0030.02415.76
5.5.50.0050.02215.70
5.5.40.0050.02015.67
5.5.30.0030.02315.67
5.5.20.0070.02015.45
5.5.10.0040.02015.55
5.5.00.0080.02415.64
5.4.450.0030.02315.89
5.4.440.0030.02515.82
5.4.430.0060.02215.86
5.4.420.0040.02515.82
5.4.410.0050.03415.80
5.4.400.0030.02515.66
5.4.390.0080.01915.70
5.4.380.0030.02315.61
5.4.370.0030.02115.72
5.4.360.0030.02115.70
5.4.350.0050.03115.64
5.4.340.0030.03815.63
5.4.330.0000.00612.33
5.4.320.0020.02415.66
5.4.310.0030.02415.77
5.4.300.0040.03615.63
5.4.290.0020.02415.64
5.4.280.0020.02515.77
5.4.270.0060.02915.76
5.4.260.0010.02615.70
5.4.250.0030.02115.77
5.4.240.0050.02115.78
5.4.230.0030.02415.65
5.4.220.0050.02115.61
5.4.210.0030.02515.64
5.4.200.0040.02015.77
5.4.190.0060.02015.75
5.4.180.0050.02415.69
5.4.170.0080.02015.65
5.4.160.0030.02215.76
5.4.150.0060.02715.76
5.4.140.0050.03014.48
5.4.130.0020.02314.42
5.4.120.0030.02114.55
5.4.110.0030.02214.41
5.4.100.0020.02014.52
5.4.90.0090.02014.52
5.4.80.0030.02514.54
5.4.70.0030.02014.53
5.4.60.0050.02014.51
5.4.50.0040.04014.42
5.4.40.0060.03414.42
5.4.30.0060.03714.36
5.4.20.0000.04114.45
5.4.10.0050.03814.47
5.4.00.0050.02614.28
5.3.290.0050.02813.66
5.3.280.0050.01913.66
5.3.270.0020.02513.66
5.3.260.0070.01913.66
5.3.250.0020.02613.66
5.3.240.0030.02013.66
5.3.230.0020.02313.66
5.3.220.0070.01813.66
5.3.210.0050.01913.66
5.3.200.0020.03013.66
5.3.190.0050.02813.66
5.3.180.0050.02113.66
5.3.170.0000.02213.66
5.3.160.0060.02913.66
5.3.150.0010.02213.66
5.3.140.0030.03413.66
5.3.130.0020.03713.66
5.3.120.0020.02713.66
5.3.110.0040.02013.66
5.3.100.0020.02313.66
5.3.90.0050.01713.66
5.3.80.0000.02513.66
5.3.70.0070.03413.66
5.3.60.0020.03213.66
5.3.50.0020.04113.66
5.3.40.0020.02213.66
5.3.30.0060.02713.66
5.3.20.0080.03313.66
5.3.10.0030.03413.66
5.3.00.0020.02613.66
5.2.170.0000.04014.98
5.2.160.0030.03114.98
5.2.150.0030.06914.98
5.2.140.0030.04714.98
5.2.130.0000.04414.98
5.2.120.0000.05814.98
5.2.110.0090.03114.98
5.2.100.0030.05314.98
5.2.90.0070.05814.98
5.2.80.0030.05914.98
5.2.70.0030.06114.98
5.2.60.0000.03414.98
5.2.50.0000.04314.98
5.2.40.0070.05914.98
5.2.30.0000.04914.98
5.2.20.0000.03714.98
5.2.10.0070.02614.98
5.2.00.0060.02814.98
5.1.60.0040.02514.98
5.1.50.0030.02314.98
5.1.40.0000.02814.98
5.1.30.0000.02914.98
5.1.20.0030.04314.98
5.1.10.0030.02414.98
5.1.00.0030.02714.98
5.0.50.0030.02714.98
5.0.40.0030.02014.98
5.0.30.0030.03914.98
5.0.20.0000.02714.98
5.0.10.0030.01914.98
5.0.00.0030.02914.98
4.4.90.0030.03214.98
4.4.80.0000.02114.98
4.4.70.0000.01714.98
4.4.60.0000.01614.98
4.4.50.0060.01214.98
4.4.40.0030.02214.98
4.4.30.0030.01314.98
4.4.20.0030.02214.98
4.4.10.0000.01914.98
4.4.00.0060.02214.98
4.3.110.0000.03614.98
4.3.100.0000.02014.98
4.3.90.0070.02014.98
4.3.80.0100.02614.98
4.3.70.0000.01814.98
4.3.60.0000.01614.98
4.3.50.0040.01414.98
4.3.40.0000.02714.98
4.3.30.0030.01414.98
4.3.20.0030.02714.98
4.3.10.0030.01414.98
4.3.00.0000.02014.98