3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { private $secret; public function __construct(User $user = null) { if ($user) { echo $user->secret = 'Not That interesting'; } } } $hasSecret = new User(); new User($hasSecret);

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.0060.00916.75
8.3.50.0080.01022.12
8.3.40.0070.00718.49
8.3.30.0070.00719.08
8.3.20.0000.00820.30
8.3.10.0050.00323.36
8.3.00.0040.00420.82
8.2.180.0140.00016.38
8.2.170.0070.01422.96
8.2.160.0110.00722.11
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00020.79
8.2.110.0000.00922.22
8.2.100.0110.00017.91
8.2.90.0040.00419.26
8.2.80.0000.01017.97
8.2.70.0070.00317.50
8.2.60.0000.00717.91
8.2.50.0030.00618.07
8.2.40.0030.00518.22
8.2.30.0000.00718.13
8.2.20.0080.00017.71
8.2.10.0040.00418.01
8.2.00.0040.00417.56
8.1.280.0110.00725.92
8.1.270.0090.00023.91
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00624.05
8.1.230.0030.00719.09
8.1.220.0000.00917.76
8.1.210.0050.00318.77
8.1.200.0050.00517.25
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0060.00318.56
8.1.160.0070.00022.02
8.1.150.0000.00818.58
8.1.140.0040.00417.50
8.1.130.0030.00317.77
8.1.120.0000.00717.30
8.1.110.0070.00017.30
8.1.100.0020.00517.37
8.1.90.0040.00417.35
8.1.80.0040.00417.34
8.1.70.0000.00717.36
8.1.60.0050.00317.59
8.1.50.0040.00417.53
8.1.40.0030.00617.47
8.1.30.0060.00317.52
8.1.20.0030.00517.65
8.1.10.0030.00617.51
8.1.00.0040.00417.41
8.0.300.0080.00018.77
8.0.290.0030.00616.63
8.0.280.0070.00018.53
8.0.270.0070.00017.20
8.0.260.0060.00017.26
8.0.250.0070.00016.86
8.0.240.0070.00016.93
8.0.230.0080.00016.83
8.0.220.0000.00716.72
8.0.210.0000.00716.78
8.0.200.0030.00316.94
8.0.190.0030.00516.88
8.0.180.0030.00616.88
8.0.170.0080.00016.83
8.0.160.0070.00016.88
8.0.150.0030.00716.86
8.0.140.0040.00416.83
8.0.130.0040.00413.22
8.0.120.0040.00416.82
8.0.110.0070.00016.68
8.0.100.0000.00816.72
8.0.90.0070.00016.63
8.0.80.0060.00916.79
8.0.70.0050.00216.74
8.0.60.0000.00816.69
8.0.50.0040.00416.83
8.0.30.0130.00616.92
8.0.20.0140.00817.40
8.0.10.0000.00716.82
8.0.00.0070.01216.53
7.4.330.0000.00515.06
7.4.320.0030.00316.41
7.4.300.0030.00316.61
7.4.290.0040.00416.64
7.4.280.0040.00316.55
7.4.270.0000.00716.64
7.4.260.0030.00616.61
7.4.250.0050.00316.47
7.4.240.0040.00316.56
7.4.230.0080.00016.63
7.4.220.0090.00916.64
7.4.210.0080.00516.63
7.4.200.0030.00416.69
7.4.160.0130.00316.48
7.4.150.0100.00717.40
7.4.140.0130.00517.86
7.4.130.0100.00716.49
7.4.120.0150.00216.53
7.4.110.0130.01016.42
7.4.100.0100.00916.44
7.4.90.0100.00716.43
7.4.80.0130.00619.39
7.4.70.0110.00916.53
7.4.60.0120.00916.52
7.4.50.0040.00416.44
7.4.40.0120.00316.48
7.4.30.0030.01316.20
7.4.00.0080.00615.10
7.3.330.0000.00513.14
7.3.320.0030.00313.30
7.3.310.0000.00716.20
7.3.300.0040.00416.26
7.3.290.0000.01416.32
7.3.280.0100.00716.25
7.3.270.0100.00617.40
7.3.260.0120.00616.48
7.3.250.0150.00316.54
7.3.240.0100.00716.36
7.3.230.0000.01916.39
7.3.210.0160.00616.51
7.3.200.0100.00719.39
7.3.190.0110.01116.57
7.3.180.0000.01616.38
7.3.170.0030.01316.38
7.3.160.0080.00816.32
7.3.120.0060.00914.70
7.3.110.0100.00714.66
7.3.100.0090.00614.95
7.3.90.0060.00314.67
7.3.80.0070.00714.61
7.3.70.0000.01414.79
7.3.60.0030.00614.96
7.3.50.0040.00815.01
7.3.40.0070.00714.71
7.3.30.0060.00314.73
7.3.20.0060.00616.46
7.3.10.0000.01316.39
7.3.00.0140.00016.68
7.2.330.0100.01016.68
7.2.320.0090.00916.30
7.2.310.0070.01016.36
7.2.300.0100.01016.32
7.2.290.0090.00816.51
7.2.250.0060.01315.09
7.2.240.0080.01115.23
7.2.230.0060.00314.78
7.2.220.0070.00714.98
7.2.210.0070.01114.73
7.2.200.0000.00914.95
7.2.190.0040.00714.91
7.2.180.0070.01014.81
7.2.170.0000.01114.72
7.2.00.0030.00819.43
7.1.330.0070.00715.56
7.1.320.0000.01515.70
7.1.310.0100.00315.88
7.1.300.0100.00315.63
7.1.290.0030.01215.66
7.1.280.0030.00615.61
7.1.270.0030.01315.81
7.1.260.0000.01115.50
7.1.100.0100.00317.74
7.1.70.0000.01317.35
7.1.60.0130.01019.70
7.1.50.0070.01717.04
7.1.00.0000.08022.28
7.0.200.0070.00416.88
7.0.140.0000.07722.00
7.0.60.0170.07719.78
7.0.50.0100.07717.85
7.0.40.0100.04020.05
7.0.30.0330.06320.16
7.0.20.0230.06320.30
7.0.10.0100.07020.11
7.0.00.0000.04320.06
5.6.280.0000.07721.05
5.6.210.0100.06720.61
5.6.200.0170.07718.15
5.6.190.0070.04320.41
5.6.180.4330.04320.33
5.6.170.0330.05720.55
5.6.160.0270.03720.46
5.6.150.0200.04018.11
5.6.140.0100.08018.18
5.6.130.0130.07318.27
5.6.120.0030.06020.98
5.6.110.0130.07321.01
5.6.100.0070.08320.98
5.6.90.0030.06021.02
5.6.80.0100.07020.41
5.5.350.0170.08320.42
5.5.340.0030.05717.99
5.5.330.0200.05020.26
5.5.320.4000.03720.21
5.5.310.0370.05720.24
5.5.300.0070.04017.96
5.5.290.0030.08017.92
5.5.280.0370.03020.80
5.5.270.0100.08320.76
5.5.260.0030.08020.88
5.5.250.0100.07320.59
5.5.240.3700.04320.28
5.4.450.0070.04029.93
5.4.440.0300.04729.93
5.4.430.0630.03729.93
5.4.420.0130.05029.93
5.4.410.0300.04729.93
5.4.400.0530.04329.68
5.4.390.0230.03329.11
5.4.380.0170.05018.78
5.4.370.0130.05318.69
5.4.360.0130.05318.55
5.4.350.0130.05318.76
5.4.340.0100.05718.73
5.4.320.0060.03612.50
5.4.310.0080.03712.49
5.4.300.0070.03912.50
5.4.290.0070.04212.50
5.4.280.0080.04212.39
5.4.270.0080.04712.39
5.4.260.0080.05012.39
5.4.250.0170.04812.40
5.4.240.0120.05212.39
5.4.230.0060.04712.39
5.4.220.0120.05212.38
5.4.210.0090.05412.39
5.4.200.0090.05612.39
5.4.190.0040.05912.38
5.4.180.0060.04212.38
5.4.170.0060.05712.39
5.4.160.0080.05112.39
5.4.150.0070.03912.39
5.4.140.0080.04812.07
5.4.130.0080.05112.05
5.4.120.0060.05512.02
5.4.110.0090.05212.01
5.4.100.0110.04512.01
5.4.90.0110.04812.02
5.4.80.0080.05512.02
5.4.70.0090.03312.01
5.4.60.0100.05112.01
5.4.50.0060.03612.01
5.4.40.0070.03512.00
5.4.30.0110.03311.99
5.4.20.0030.04011.99
5.4.10.0130.04811.99
5.4.00.0040.04011.48
5.3.290.0030.04412.80
5.3.280.0110.05112.71
5.3.270.0080.04012.72
5.3.260.0110.03912.72
5.3.250.0120.03612.72
5.3.240.0080.04612.72
5.3.230.0030.04412.70
5.3.220.0060.05912.68
5.3.210.0180.05112.68
5.3.200.0090.04112.68
5.3.190.0090.04112.68
5.3.180.0090.04312.68
5.3.170.0080.04212.67
5.3.160.0060.04612.67
5.3.150.0070.04312.67
5.3.140.0100.04912.66
5.3.130.0090.04412.66
5.3.120.0100.04912.66
5.3.110.0070.05012.66
5.3.100.0100.04312.12
5.3.90.0070.03812.09
5.3.80.0100.03612.09
5.3.70.0090.04512.09
5.3.60.0070.05112.07
5.3.50.0110.05012.02
5.3.40.0100.05312.02
5.3.30.0110.05211.98
5.3.20.0110.05111.77
5.3.10.0080.05311.73
5.3.00.0120.04411.71
5.2.170.0040.0349.22
5.2.160.0040.0339.22
5.2.150.0030.0369.22
5.2.140.0090.0299.22
5.2.130.0110.0289.18
5.2.120.0050.0389.18
5.2.110.0140.0369.18
5.2.100.0080.0379.17
5.2.90.0090.0379.17
5.2.80.0090.0389.17
5.2.70.0120.0369.17
5.2.60.0100.0389.12
5.2.50.0090.0389.09
5.2.40.0060.0389.07
5.2.30.0100.0369.04
5.2.20.0090.0359.03
5.2.10.0070.0358.94
5.2.00.0090.0368.80
5.1.60.0090.0308.08
5.1.50.0070.0328.08
5.1.40.0050.0348.06
5.1.30.0060.0358.41
5.1.20.0040.0388.44
5.1.10.0070.0378.16
5.1.00.0110.0368.16
5.0.50.0070.0306.64
5.0.40.0040.0246.50
5.0.30.0050.0366.32
5.0.20.0030.0246.28
5.0.10.0010.0246.25
5.0.00.0040.0316.25
4.4.90.0060.0144.78
4.4.80.0040.0164.75
4.4.70.0060.0134.75
4.4.60.0030.0194.76
4.4.50.0070.0254.77
4.4.40.0050.0394.71
4.4.30.0030.0194.76
4.4.20.0050.0234.84
4.4.10.0050.0164.84
4.4.00.0020.0264.76
4.3.110.0020.0174.66
4.3.100.0010.0174.66
4.3.90.0030.0154.63
4.3.80.0060.0224.59
4.3.70.0040.0134.63
4.3.60.0020.0164.63
4.3.50.0020.0204.63
4.3.40.0070.0404.54
4.3.30.0050.0293.30
4.3.20.0000.0263.28
4.3.10.0020.0363.23
4.3.00.0130.01328.29

preferences:
41.24 ms | 401 KiB | 5 Q