3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Core { function __construct() { if ($_GET['hi']) { exit('hi'); } } function __destruct() { if (is_object($GLOBALS['core'])) { phpinfo(); } else { echo 'fuck'; } } } $_GET['hi'] = 1; $core = new Core;

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.01018.31
8.3.50.0080.00821.28
8.3.40.0110.00718.70
8.3.30.0070.01019.10
8.3.20.0080.00020.24
8.3.10.0080.00023.66
8.3.00.0060.00319.38
8.2.180.0090.00918.41
8.2.170.0070.00722.96
8.2.160.0080.00619.30
8.2.150.0040.00424.18
8.2.140.0070.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00021.18
8.2.110.0060.00322.09
8.2.100.0070.00417.84
8.2.90.0000.00917.75
8.2.80.0040.00417.97
8.2.70.0000.00918.16
8.2.60.0050.00318.03
8.2.50.0040.00418.10
8.2.40.0030.00620.42
8.2.30.0060.00318.22
8.2.20.0080.00017.82
8.2.10.0040.00418.03
8.2.00.0000.00817.88
8.1.280.0140.00025.92
8.1.270.0050.00323.82
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.91
8.1.230.0110.00419.02
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0000.00817.25
8.1.180.0000.00818.10
8.1.170.0000.00918.64
8.1.160.0000.00722.06
8.1.150.0040.00418.75
8.1.140.0050.00317.30
8.1.130.0030.00517.78
8.1.120.0070.00017.37
8.1.110.0040.00417.38
8.1.100.0000.00717.32
8.1.90.0000.00717.29
8.1.80.0030.00517.30
8.1.70.0030.00317.33
8.1.60.0050.00217.50
8.1.50.0080.00017.48
8.1.40.0070.00017.48
8.1.30.0040.00417.56
8.1.20.0000.00817.55
8.1.10.0080.00017.57
8.1.00.0000.00717.51
8.0.300.0000.00719.63
8.0.290.0060.00316.88
8.0.280.0070.00018.50
8.0.270.0040.00417.25
8.0.260.0030.00317.14
8.0.250.0000.00717.00
8.0.240.0000.00616.91
8.0.230.0030.00516.82
8.0.220.0040.00416.78
8.0.210.0070.00016.85
8.0.200.0060.00016.97
8.0.190.0060.00316.88
8.0.180.0080.00016.81
8.0.170.0050.00316.81
8.0.160.0000.00816.74
8.0.150.0030.00316.87
8.0.140.0000.00716.71
8.0.130.0030.00313.32
8.0.120.0000.00816.87
8.0.110.0050.00316.88
8.0.100.0040.00416.75
8.0.90.0000.00716.84
8.0.80.0090.00916.84
8.0.70.0050.00216.76
8.0.60.0000.00716.91
8.0.50.0030.00516.84
8.0.30.0130.00617.19
8.0.20.0120.00917.40
8.0.10.0040.00416.93
8.0.00.0080.00916.73
7.4.330.0020.00215.03
7.4.320.0030.00316.63
7.4.300.0040.00416.61
7.4.290.0000.00716.60
7.4.280.0000.00816.41
7.4.270.0030.00516.61
7.4.260.0000.00716.59
7.4.250.0050.00216.34
7.4.240.0000.00716.57
7.4.230.0030.00416.30
7.4.220.0100.00716.53
7.4.210.0030.01416.56
7.4.200.0040.00416.70
7.4.160.0090.00616.41
7.4.150.0150.00817.40
7.4.140.0070.01217.86
7.4.130.0090.00916.49
7.4.120.0080.01116.69
7.4.110.0060.01716.60
7.4.100.0040.01416.50
7.4.90.0200.00316.62
7.4.80.0140.00719.39
7.4.70.0070.01016.39
7.4.60.0100.00616.48
7.4.50.0030.00616.46
7.4.40.0090.00916.57
7.4.30.0180.00316.55
7.4.00.0070.00714.95
7.3.330.0030.00513.23
7.3.320.0050.00013.31
7.3.310.0000.00716.23
7.3.300.0000.00716.39
7.3.290.0070.00816.37
7.3.280.0070.01116.35
7.3.270.0190.00317.40
7.3.260.0030.01516.43
7.3.250.0120.00716.45
7.3.240.0100.00716.57
7.3.230.0120.00616.39
7.3.210.0070.01016.43
7.3.200.0040.01219.39
7.3.190.0030.01416.34
7.3.180.0060.00916.36
7.3.170.0080.01116.46
7.3.160.0100.00716.41
7.3.120.0150.00314.89
7.3.110.0030.01014.76
7.3.100.0040.01114.93
7.3.90.0080.00814.95
7.3.80.0130.00014.88
7.3.70.0100.00614.47
7.3.60.0000.01014.82
7.3.50.0040.00814.55
7.3.40.0100.00714.80
7.3.30.0060.00914.89
7.3.20.0040.01116.82
7.3.10.0030.01016.75
7.3.00.0050.00816.85
7.2.330.0100.01416.76
7.2.320.0140.01116.50
7.2.310.0140.00416.45
7.2.300.0100.00716.55
7.2.290.0090.01416.75
7.2.250.0100.01014.84
7.2.240.0040.01515.06
7.2.230.0030.00815.02
7.2.220.0030.01014.89
7.2.210.0070.01114.93
7.2.200.0070.00314.96
7.2.190.0060.00914.80
7.2.180.0070.01014.72
7.2.170.0070.01014.83
7.2.130.0090.00616.84
7.2.120.0040.01116.89
7.2.110.0070.00716.77
7.2.100.0040.00816.82
7.2.90.0060.00917.16
7.2.80.0000.01317.12
7.2.70.0090.00417.16
7.2.60.0120.00316.73
7.2.50.0110.00416.64
7.2.40.0030.00917.07
7.2.30.0070.00416.95
7.2.20.0080.00016.97
7.2.10.0000.01016.99
7.2.00.0020.00918.17
7.1.330.0130.00016.05
7.1.320.0060.00615.84
7.1.310.0080.00415.81
7.1.300.0060.00915.74
7.1.290.0100.00015.96
7.1.280.0040.01215.92
7.1.270.0040.01215.89
7.1.260.0110.00415.75
7.1.250.0030.00715.93
7.1.100.0030.01017.81
7.1.70.0000.00817.24
7.1.60.0110.01419.11
7.1.50.0070.01716.70
7.1.00.0030.07322.51
7.0.200.0000.00716.78
7.0.140.0000.07722.10
7.0.60.0030.05019.90
7.0.50.0030.06717.91
7.0.40.0100.08720.25
7.0.30.0270.08020.17
7.0.20.0400.07320.22
7.0.10.0030.05020.21
7.0.00.0130.07320.25
5.6.280.0100.06720.90
5.6.210.0030.06720.72
5.6.200.0070.03718.29
5.6.190.0130.08020.61
5.6.180.0270.08320.55
5.6.170.0300.07020.57
5.6.160.0100.04720.44
5.6.150.0070.04018.18
5.6.140.0070.04718.23
5.6.130.0030.09018.28
5.6.120.0100.08721.02
5.6.110.0100.07320.98
5.6.100.0030.04721.09
5.6.90.0130.07721.04
5.6.80.0030.03720.39
5.5.350.3500.04320.39
5.5.340.0130.07317.98
5.5.330.0100.08320.35
5.5.320.0600.06020.25
5.5.310.0370.06320.27
5.5.300.0170.07717.95
5.5.290.0100.06317.97
5.5.280.0300.04020.89
5.5.270.0130.08020.88
5.5.260.0070.04720.68
5.5.250.0130.07320.68
5.5.240.0170.07020.19
5.4.450.0730.06019.48
5.4.440.0970.05319.44
5.4.430.0700.05719.30
5.4.420.0970.06719.54
5.4.410.0870.05019.04
5.4.400.0870.05719.29
5.4.390.0770.05319.11
5.4.380.0670.05319.22
5.4.370.0730.05719.26
5.4.360.0570.05019.25
5.4.350.0100.05019.23
5.4.340.0030.04412.02
5.4.320.0060.03712.50
5.4.310.0070.05512.50
5.4.300.0050.03812.50
5.4.290.0110.03412.50
5.4.280.0090.03212.40
5.4.270.0050.03612.40
5.4.260.0040.03912.40
5.4.250.0060.04112.39
5.4.240.0050.04312.40
5.4.230.0080.03512.39
5.4.220.0070.03512.39
5.4.210.0040.03712.39
5.4.200.0050.03812.39
5.4.190.0040.03812.38
5.4.180.0070.03512.39
5.4.170.0030.03812.40
5.4.160.0080.03312.39
5.4.150.0030.03912.39
5.4.140.0060.03712.08
5.4.130.0040.03612.06
5.4.120.0020.04112.02
5.4.110.0030.03912.02
5.4.100.0050.03612.02
5.4.90.0030.03912.02
5.4.80.0060.05112.02
5.4.70.0040.04512.01
5.4.60.0090.03112.01
5.4.50.0040.03912.02
5.4.40.0090.03512.00
5.4.30.0070.03612.00
5.4.20.0040.03812.00
5.4.10.0030.04012.00
5.4.00.0050.03711.49
5.3.290.0050.04712.80
5.3.280.0070.03912.71
5.3.270.0020.04312.72
5.3.260.0040.04112.72
5.3.250.0040.03912.72
5.3.240.0040.03912.72
5.3.230.0060.03712.71
5.3.220.0070.03512.68
5.3.210.0070.03712.68
5.3.200.0070.03612.68
5.3.190.0080.04012.68
5.3.180.0080.03512.68
5.3.170.0030.03912.67
5.3.160.0060.03612.68
5.3.150.0060.04812.68
5.3.140.0030.04912.66
5.3.130.0060.03912.66
5.3.120.0060.03812.66
5.3.110.0040.03912.65
5.3.100.0050.03712.12
5.3.90.0050.03612.10
5.3.80.0090.03312.10
5.3.70.0010.04012.10
5.3.60.0080.03412.08
5.3.50.0060.03512.04
5.3.40.0060.03612.04
5.3.30.0090.03211.99
5.3.20.0060.03411.77
5.3.10.0120.02811.73
5.3.00.0180.02411.72
5.2.170.0020.0339.23
5.2.160.0050.0299.23
5.2.150.0040.0319.23
5.2.140.0070.0279.22
5.2.130.0060.0289.18
5.2.120.0060.0279.18
5.2.110.0040.0299.20
5.2.100.0050.0289.18
5.2.90.0050.0339.18
5.2.80.0050.0359.18
5.2.70.0090.0299.18
5.2.60.0060.0329.14
5.2.50.0090.0309.11
5.2.40.0040.0339.08
5.2.30.0100.0349.05
5.2.20.0120.0329.04
5.2.10.0110.0338.95
5.2.00.0070.0388.81
5.1.60.0100.0288.09
5.1.50.0090.0298.09
5.1.40.0030.0348.07
5.1.30.0040.0288.42
5.1.20.0060.0288.45
5.1.10.0020.0298.17
5.1.00.0040.0258.17
5.0.50.0020.0226.64
5.0.40.0010.0216.50
5.0.30.0040.0316.32
5.0.20.0060.0176.29
5.0.10.0070.0176.26
5.0.00.0030.0316.25
4.4.90.0050.0134.78
4.4.80.0020.0154.76
4.4.70.0020.0164.75
4.4.60.0010.0174.75
4.4.50.0020.0154.77
4.4.40.0030.0244.71
4.4.30.0020.0164.76
4.4.20.0020.0164.85
4.4.10.0030.0154.85
4.4.00.0020.0254.76
4.3.110.0020.0174.67
4.3.100.0050.0144.67
4.3.90.0020.0224.63
4.3.80.0010.0274.58
4.3.70.0040.0164.63
4.3.60.0050.0134.63
4.3.50.0030.0164.63
4.3.40.0040.0234.54
4.3.30.0040.0143.30
4.3.20.0050.0133.28
4.3.10.0020.0173.24
4.3.00.0100.0276.70

preferences:
51.28 ms | 401 KiB | 5 Q