3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function __construct() { return $this; } } class init { public function __construct(test $test) { return $this; } } $init = new init(new DateTime);

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.0140.00418.68
8.3.50.0140.00921.27
8.3.40.0110.00419.14
8.3.30.0120.00319.27
8.3.20.0040.00420.03
8.3.10.0080.00023.66
8.3.00.0050.00319.50
8.2.180.0140.00716.63
8.2.170.0070.00722.96
8.2.160.0040.01120.53
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00422.18
8.2.110.0050.00320.59
8.2.100.0090.00318.16
8.2.90.0000.00819.21
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0000.01017.80
8.2.50.0080.00018.07
8.2.40.0030.00619.76
8.2.30.0040.00418.06
8.2.20.0050.00217.87
8.2.10.0030.00618.05
8.2.00.0000.00817.85
8.1.280.0140.00325.92
8.1.270.0080.00022.27
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.94
8.1.230.0070.00419.08
8.1.220.0000.00917.79
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0040.00417.25
8.1.180.0040.00418.10
8.1.170.0050.00318.38
8.1.160.0040.00421.95
8.1.150.0000.00818.83
8.1.140.0040.00417.43
8.1.130.0000.00717.87
8.1.120.0040.00417.59
8.1.110.0030.00517.52
8.1.100.0040.00417.52
8.1.90.0070.00017.46
8.1.80.0040.00417.48
8.1.70.0070.00017.46
8.1.60.0040.00417.63
8.1.50.0040.00417.62
8.1.40.0000.00817.56
8.1.30.0080.00017.59
8.1.20.0000.00917.72
8.1.10.0000.00717.63
8.1.00.0030.00517.66
8.0.300.0080.00018.77
8.0.290.0050.00216.71
8.0.280.0000.00818.44
8.0.270.0070.00017.26
8.0.260.0030.00317.23
8.0.250.0030.00317.15
8.0.240.0080.00017.18
8.0.230.0040.00417.11
8.0.220.0000.00717.03
8.0.210.0000.00717.00
8.0.200.0000.00617.10
8.0.190.0060.00617.16
8.0.180.0000.00817.01
8.0.170.0090.00017.00
8.0.160.0000.00717.14
8.0.150.0000.00716.98
8.0.140.0070.00017.06
8.0.130.0000.00513.41
8.0.120.0000.00817.09
8.0.110.0050.00217.02
8.0.100.0040.00417.13
8.0.90.0000.00717.13
8.0.80.0080.00817.05
8.0.70.0080.00017.13
8.0.60.0000.00817.15
8.0.50.0000.00917.12
8.0.30.0030.01717.25
8.0.20.0160.00517.44
8.0.10.0040.00417.04
8.0.00.0030.01516.90
7.4.330.0030.00315.00
7.4.320.0030.00316.59
7.4.300.0000.00616.59
7.4.290.0080.00016.66
7.4.280.0040.00416.65
7.4.270.0030.00316.61
7.4.260.0100.00016.46
7.4.250.0050.00216.54
7.4.240.0000.00716.65
7.4.230.0040.00416.68
7.4.220.0110.00716.61
7.4.210.0070.00716.55
7.4.200.0030.00316.70
7.4.160.0100.01316.75
7.4.150.0070.01117.40
7.4.140.0140.00517.86
7.4.130.0120.00516.70
7.4.120.0130.00416.60
7.4.110.0050.01116.43
7.4.100.0030.01416.58
7.4.90.0130.00316.69
7.4.80.0040.01419.39
7.4.70.0120.00316.58
7.4.60.0030.01316.95
7.4.50.0080.00016.70
7.4.40.0030.01316.79
7.4.30.0080.01516.88
7.4.00.0030.01014.99
7.3.330.0030.00313.28
7.3.320.0000.00513.51
7.3.310.0030.00616.32
7.3.300.0050.00216.52
7.3.290.0040.01716.48
7.3.280.0040.01116.50
7.3.270.0060.01017.40
7.3.260.0100.00716.57
7.3.250.0080.01216.78
7.3.240.0140.00316.62
7.3.230.0140.00316.60
7.3.210.0060.01216.52
7.3.200.0180.00419.39
7.3.190.0070.01016.72
7.3.180.0100.00716.62
7.3.170.0090.00616.66
7.3.160.0100.01016.57
7.2.330.0150.00316.57
7.2.320.0090.00816.80
7.2.310.0150.00716.52
7.2.300.0110.00516.67
7.2.290.0160.00616.87
7.2.60.0060.00916.71
7.2.00.0060.00619.33
7.1.200.0110.00715.95
7.1.100.0090.00618.17
7.1.70.0130.00317.09
7.1.60.0100.01319.32
7.1.50.0100.01316.70
7.1.00.0070.07022.37
7.0.200.0030.00716.88
7.0.140.0030.07321.98
7.0.60.0130.08020.05
7.0.50.0030.05017.89
7.0.40.0100.04720.24
7.0.30.0370.08020.08
7.0.20.0070.05020.07
7.0.10.0070.06020.24
7.0.00.0070.04020.30
5.6.280.0070.07020.79
5.6.210.0100.08020.48
5.6.200.0030.06318.27
5.6.190.0030.07320.55
5.6.180.0330.07320.61
5.6.170.0170.04020.47
5.6.160.0070.03720.55
5.6.150.0030.04318.25
5.6.140.0100.06718.21
5.6.130.0100.07018.18
5.6.120.0200.07020.91
5.6.110.0000.04321.14
5.6.100.0070.06020.99
5.6.90.0070.07321.00
5.6.80.0070.08020.42
5.5.350.0100.08720.43
5.5.340.0030.07017.96
5.5.330.0030.06320.13
5.5.320.0370.04720.51
5.5.310.0430.06720.36
5.5.300.0070.05018.03
5.5.290.0100.03317.91
5.5.280.0100.07320.98
5.5.270.0070.08720.76
5.5.260.0070.05320.73
5.5.250.0100.03720.61
5.5.240.0300.06720.29
5.4.450.1800.03719.57
5.4.440.2000.04019.57
5.4.430.2130.03719.40
5.4.420.1900.02719.63
5.4.410.1630.03719.20
5.4.400.1870.04719.07
5.4.390.1630.03719.13
5.4.380.1970.03719.18
5.4.370.1570.04018.87
5.4.360.1970.04719.17
5.4.350.1570.05019.28
5.4.340.1800.04319.31
5.4.320.1900.05019.20
5.4.310.1770.04318.95
5.4.300.1900.04019.08
5.4.290.1870.04319.04
5.4.280.1770.03319.14
5.4.270.1830.04719.24
5.4.260.1030.05019.21
5.4.250.0100.06019.21
5.4.240.0070.07318.94
5.4.230.1600.03319.18
5.4.220.1800.03719.09
5.4.210.1900.05019.04
5.4.200.1800.04319.21
5.4.190.1900.04019.21
5.4.180.1870.05018.83
5.4.170.1900.03018.86
5.4.160.1830.04719.07
5.4.150.1600.04019.33
5.4.140.1830.04316.38
5.4.130.1770.03716.50
5.4.120.2000.03716.55
5.4.110.1630.03716.61
5.4.100.2000.03716.59
5.4.90.1630.03716.40
5.4.80.1870.04316.49
5.4.70.1830.03316.57
5.4.60.1930.04716.17
5.4.50.1700.04716.54
5.4.40.1930.04016.22
5.4.30.1770.04316.16
5.4.20.1900.04316.22
5.4.10.0830.04716.37
5.4.00.0030.08715.84
5.3.290.0000.04014.66
5.3.280.0700.03714.59
5.3.270.1670.04014.51
5.3.260.2070.03014.50
5.3.250.1930.03314.68
5.3.240.2000.03714.53
5.3.230.1900.04714.71
5.3.220.1930.04714.73
5.3.210.1830.05014.59
5.3.200.2030.03714.54
5.3.190.1670.04014.57
5.3.180.1700.03714.57
5.3.170.0000.04014.79
5.3.160.0100.03014.54
5.3.150.0070.03314.64
5.3.140.1270.05014.67
5.3.130.1630.03014.63
5.3.120.1670.03714.60
5.3.110.1400.03314.63
5.3.100.0070.04013.96
5.3.90.0000.04013.92
5.3.80.0070.03713.94
5.3.70.1330.04014.08
5.3.60.1700.03313.90
5.3.50.1670.03314.02
5.3.40.1870.03313.87
5.3.30.1900.04313.82
5.3.20.1770.05013.93
5.3.10.1670.03313.77
5.3.00.0030.03313.65
5.2.170.0030.03011.09
5.2.160.0070.03311.21
5.2.150.0500.02711.08
5.2.140.1400.03011.27
5.2.130.1770.03311.23
5.2.120.1600.03711.34
5.2.110.1570.03311.10
5.2.100.1570.03311.04
5.2.90.1530.03711.01
5.2.80.1670.03011.18
5.2.70.1600.03711.07
5.2.60.1530.03011.07
5.2.50.1500.03310.93
5.2.40.1230.03011.01
5.2.30.1330.03710.84
5.2.20.0230.05310.88
5.2.10.0000.03010.79
5.2.00.0070.04010.69
5.1.60.0030.02710.13
5.1.50.0000.04310.00
5.1.40.0330.0279.96
5.1.30.1230.03010.25
5.1.20.1370.03010.26
5.1.10.1400.0279.98
5.1.00.1370.02710.30
5.0.50.0830.0338.64
5.0.40.0570.0208.30
5.0.30.0530.0308.20
5.0.20.0630.0208.18
5.0.10.0530.0208.06
5.0.00.0630.0308.24
4.4.90.0530.0177.73
4.4.80.0530.0177.73
4.4.70.0530.0177.73
4.4.60.0570.0137.73
4.4.50.0670.0177.73
4.4.40.0570.0207.73
4.4.30.0570.0137.73
4.4.20.0600.0107.73
4.4.10.0530.0207.73
4.4.00.0430.0237.73
4.3.110.0030.0137.73
4.3.100.0000.0177.73
4.3.90.0000.0177.73
4.3.80.0000.0307.73
4.3.70.0000.0137.73
4.3.60.0000.0177.73
4.3.50.0030.0177.73
4.3.40.0070.0237.73
4.3.30.0170.0137.73
4.3.20.0200.0177.73
4.3.10.0030.0177.73
4.3.00.0200.0137.73

preferences:
45.37 ms | 401 KiB | 5 Q