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 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.0150.00918.55
8.3.50.0120.01022.12
8.3.40.0070.00718.54
8.3.30.0070.00718.84
8.3.20.0070.00020.16
8.3.10.0080.00023.48
8.3.00.0030.00519.38
8.2.180.0100.00716.38
8.2.170.0100.00322.96
8.2.160.0070.00720.27
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00022.08
8.2.110.0000.00920.47
8.2.100.0090.00318.09
8.2.90.0080.00019.17
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0030.00917.90
8.2.50.0060.00318.07
8.2.40.0050.00319.66
8.2.30.0050.00217.86
8.2.20.0040.00417.55
8.2.10.0060.00317.98
8.2.00.0040.00417.57
8.1.280.0070.00725.92
8.1.270.0040.00421.92
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00423.79
8.1.230.0070.00418.97
8.1.220.0090.00017.74
8.1.210.0080.00018.77
8.1.200.0030.00616.99
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0040.00418.60
8.1.160.0040.00421.80
8.1.150.0070.00018.73
8.1.140.0040.00417.29
8.1.130.0070.00017.79
8.1.120.0000.00717.28
8.1.110.0050.00317.29
8.1.100.0030.00517.37
8.1.90.0070.00017.32
8.1.80.0040.00417.37
8.1.70.0070.00017.32
8.1.60.0040.00417.61
8.1.50.0000.00817.39
8.1.40.0050.00517.49
8.1.30.0080.00017.68
8.1.20.0080.00017.51
8.1.10.0030.00617.56
8.1.00.0080.00017.43
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0030.00318.36
8.0.270.0030.00317.18
8.0.260.0030.00317.13
8.0.250.0030.00316.84
8.0.240.0080.00016.98
8.0.230.0050.00316.87
8.0.220.0040.00416.88
8.0.210.0030.00316.87
8.0.200.0060.00016.91
8.0.190.0040.00716.84
8.0.180.0040.00416.80
8.0.170.0060.00316.80
8.0.160.0040.00416.88
8.0.150.0040.00416.91
8.0.140.0000.00916.76
8.0.130.0000.00513.33
8.0.120.0040.00416.86
8.0.110.0040.00416.77
8.0.100.0050.00316.79
8.0.90.0000.00716.75
8.0.80.0030.01816.87
8.0.70.0000.00716.83
8.0.60.0030.00516.75
8.0.50.0030.00516.93
8.0.30.0120.00817.10
8.0.20.0070.01217.40
8.0.10.0000.00816.91
8.0.00.0120.01016.88
7.4.330.0030.00315.00
7.4.320.0030.00316.43
7.4.300.0030.00316.35
7.4.290.0030.00316.43
7.4.280.0000.00816.57
7.4.270.0000.00716.60
7.4.260.0060.00316.48
7.4.250.0020.00516.38
7.4.240.0000.00716.53
7.4.230.0000.00716.60
7.4.220.0100.00716.57
7.4.210.0000.01316.67
7.4.200.0040.00416.44
7.4.160.0150.00816.38
7.4.150.0030.01317.40
7.4.140.0080.01017.86
7.4.130.0120.00516.45
7.4.120.0100.00616.42
7.4.110.0100.00716.64
7.4.100.0180.00016.46
7.4.90.0070.01016.41
7.4.80.0100.00719.39
7.4.70.0060.00916.48
7.4.60.0160.00016.48
7.4.50.0030.00516.40
7.4.40.0080.00816.39
7.4.30.0140.00516.39
7.4.00.0030.01015.00
7.3.330.0000.00513.21
7.3.320.0000.00513.17
7.3.310.0040.00416.14
7.3.300.0000.00616.15
7.3.290.0090.01016.23
7.3.280.0090.01016.27
7.3.270.0100.00617.40
7.3.260.0070.01616.39
7.3.250.0030.01416.29
7.3.240.0110.00816.35
7.3.230.0070.01016.39
7.3.210.0060.01216.25
7.3.200.0110.01419.39
7.3.190.0140.00416.50
7.3.180.0120.00916.14
7.3.170.0030.01316.41
7.3.160.0050.01016.49
7.2.330.0120.00616.54
7.2.320.0070.01116.26
7.2.310.0060.01116.70
7.2.300.0120.00316.59
7.2.290.0060.01616.63
7.2.110.0110.00316.55
7.2.00.0060.00619.48
7.1.100.0080.00418.28
7.1.70.0070.00017.03
7.1.60.0110.01419.32
7.1.50.0000.01716.78
7.1.00.0030.07722.45
7.0.200.0000.00716.64
7.0.140.0030.07321.92
7.0.60.0070.08720.02
7.0.50.0070.04717.85
7.0.40.0000.06720.06
7.0.30.0530.06320.07
7.0.20.0270.06020.15
7.0.10.0030.08320.10
7.0.00.0030.09020.05
5.6.280.0100.06720.93
5.6.210.0030.07020.55
5.6.200.0100.07718.29
5.6.190.0100.04720.52
5.6.180.0300.07320.69
5.6.170.0270.04320.45
5.6.160.0000.04320.57
5.6.150.0130.07318.23
5.6.140.0170.07018.16
5.6.130.0030.08318.17
5.6.120.0030.04320.91
5.6.110.0100.05721.09
5.6.100.0200.07321.11
5.6.90.0070.08720.98
5.6.80.0130.06320.50
5.5.350.0130.08320.41
5.5.340.0030.08318.04
5.5.330.0070.07020.19
5.5.320.0370.06320.31
5.5.310.0230.03720.29
5.5.300.0030.04717.95
5.5.290.0070.03717.97
5.5.280.0000.04320.78
5.5.270.0070.06320.86
5.5.260.0130.07320.87
5.5.250.0130.06720.50
5.5.240.0270.05320.29
5.4.450.0800.06719.55
5.4.440.0870.05319.60
5.4.430.0800.05319.62
5.4.420.0800.00019.51
5.4.410.0770.00019.42
5.4.400.0600.00019.12
5.4.390.0630.00019.25
5.4.380.0630.00019.12
5.4.370.0630.00019.21
5.4.360.0700.00019.16
5.4.350.0700.00019.16
5.4.340.0060.04012.02
5.4.320.0080.04012.50
5.4.310.0100.03312.50
5.4.300.0060.03612.50
5.4.290.0050.03812.50
5.4.280.0020.03812.39
5.4.270.0070.03412.40
5.4.260.0040.03812.40
5.4.250.0070.03612.39
5.4.240.0060.03712.39
5.4.230.0060.03612.39
5.4.220.0040.03712.39
5.4.210.0060.03712.39
5.4.200.0050.03812.39
5.4.190.0060.03512.38
5.4.180.0060.03512.38
5.4.170.0070.03312.39
5.4.160.0060.03412.39
5.4.150.0070.03412.39
5.4.140.0030.03912.07
5.4.130.0040.03712.06
5.4.120.0120.03012.01
5.4.110.0030.03712.02
5.4.100.0060.03512.01
5.4.90.0060.03612.02
5.4.80.0050.03812.02
5.4.70.0070.03312.01
5.4.60.0050.04112.00
5.4.50.0050.03612.00
5.4.40.0030.03912.00
5.4.30.0070.03412.00
5.4.20.0040.03612.00
5.4.10.0050.03511.99
5.4.00.0020.04011.48
5.3.290.0060.03812.80
5.3.280.0050.03812.71
5.3.270.0030.04512.72
5.3.260.0080.04712.72
5.3.250.0080.03912.72
5.3.240.0100.04212.72
5.3.230.0090.04012.71
5.3.220.0040.03912.68
5.3.210.0050.04012.68
5.3.200.0040.03712.68
5.3.190.0050.03712.68
5.3.180.0070.03412.68
5.3.170.0020.04112.67
5.3.160.0070.03712.67
5.3.150.0070.03512.67
5.3.140.0110.04212.66
5.3.130.0080.03712.66
5.3.120.0110.04312.66
5.3.110.0060.03812.66
5.3.100.0020.03912.12
5.3.90.0050.03712.10
5.3.80.0070.03612.09
5.3.70.0090.03312.09
5.3.60.0060.03512.07
5.3.50.0090.03212.03
5.3.40.0100.03312.03
5.3.30.0050.03411.98
5.3.20.0040.03611.76
5.3.10.0070.03311.73
5.3.00.0060.03511.72
5.2.170.0060.0299.22
5.2.160.0050.0299.23
5.2.150.0070.0279.23
5.2.140.0010.0339.22
5.2.130.0050.0289.18
5.2.120.0070.0259.18
5.2.110.0080.0259.19
5.2.100.0060.0279.18
5.2.90.0080.0269.18
5.2.80.0050.0299.18
5.2.70.0060.0289.17
5.2.60.0070.0369.13
5.2.50.0040.0389.10
5.2.40.0060.0289.08
5.2.30.0030.0339.05
5.2.20.0030.0349.04
5.2.10.0040.0298.94
5.2.00.0070.0278.80
5.1.60.0050.0268.09
5.1.50.0030.0268.09
5.1.40.0030.0258.06
5.1.30.0030.0278.42
5.1.20.0040.0308.44
5.1.10.0050.0248.17
5.1.00.0030.0268.16
5.0.50.0050.0206.64
5.0.40.0030.0206.50
5.0.30.0020.0356.32
5.0.20.0020.0226.28
5.0.10.0040.0216.25
5.0.00.0020.0326.25
4.4.90.0020.0174.78
4.4.80.0030.0144.75
4.4.70.0030.0214.75
4.4.60.0040.0234.75
4.4.50.0060.0124.77
4.4.40.0040.0364.70
4.4.30.0020.0174.76
4.4.20.0050.0174.85
4.4.10.0040.0144.85
4.4.00.0020.0264.76
4.3.110.0010.0184.67
4.3.100.0040.0144.66
4.3.90.0030.0144.64
4.3.80.0060.0214.58
4.3.70.0020.0144.63
4.3.60.0040.0134.63
4.3.50.0010.0174.63
4.3.40.0030.0294.54
4.3.30.0030.0213.30
4.3.20.0020.0173.28
4.3.10.0020.0163.24
4.3.00.0100.0237.20

preferences:
37.43 ms | 401 KiB | 5 Q