3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { private $name; private function __construct($name) { $this->name = $name; } public function register($name) { new Person($name); } } $person = (new Person)->register($name);

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.0090.00616.75
8.3.50.0070.01022.04
8.3.40.0100.01318.74
8.3.30.0110.00419.18
8.3.20.0030.00620.16
8.3.10.0080.00023.66
8.3.00.0030.00619.38
8.2.180.0080.00816.75
8.2.170.0040.01122.96
8.2.160.0130.00720.38
8.2.150.0030.00524.18
8.2.140.0070.00024.66
8.2.130.0090.00026.16
8.2.120.0070.00021.99
8.2.110.0060.00320.36
8.2.100.0110.00017.66
8.2.90.0040.00418.03
8.2.80.0090.00017.97
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0040.00419.82
8.2.30.0030.00519.85
8.2.20.0040.00417.73
8.2.10.0050.00217.86
8.2.00.0030.00717.67
8.1.280.0170.00025.92
8.1.270.0040.00423.88
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00322.09
8.1.230.0080.00320.90
8.1.220.0080.00017.74
8.1.210.0050.00318.78
8.1.200.0040.00417.23
8.1.190.0030.00517.39
8.1.180.0070.00618.10
8.1.170.0080.00318.30
8.1.160.0070.00221.84
8.1.150.0040.00418.52
8.1.140.0000.00717.32
8.1.130.0020.00517.70
8.1.120.0030.00617.32
8.1.110.0040.00417.23
8.1.100.0070.00017.21
8.1.90.0040.00417.28
8.1.80.0000.00717.29
8.1.70.0030.00317.31
8.1.60.0050.00317.35
8.1.50.0050.00317.49
8.1.40.0000.00817.48
8.1.30.0060.00317.54
8.1.20.0000.00717.47
8.1.10.0030.00617.50
8.1.00.0040.00417.45
8.0.300.0060.00320.09
8.0.290.0000.00817.05
8.0.280.0000.00718.38
8.0.270.0000.00717.11
8.0.260.0060.00017.06
8.0.250.0000.00716.89
8.0.240.0070.00016.93
8.0.230.0050.00217.00
8.0.220.0030.00316.78
8.0.210.0060.00316.91
8.0.200.0040.00416.94
8.0.190.0030.00516.85
8.0.180.0080.00316.75
8.0.170.0000.00816.89
8.0.160.0000.00716.90
8.0.150.0000.00716.74
8.0.140.0040.00416.88
8.0.130.0030.00313.31
8.0.120.0050.00216.84
8.0.110.0040.00416.71
8.0.100.0040.00416.67
8.0.90.0030.00516.84
8.0.80.0080.00716.84
8.0.70.0050.00316.88
8.0.60.0050.00216.83
8.0.50.0040.00416.93
8.0.30.0130.00516.99
8.0.20.0060.01417.40
8.0.10.0050.00216.89
8.0.00.0100.00816.83
7.4.330.0050.00015.00
7.4.320.0060.00016.52
7.4.300.0030.00316.55
7.4.290.0040.00416.50
7.4.280.0030.00716.48
7.4.270.0030.00316.55
7.4.260.0000.00816.49
7.4.250.0030.00516.44
7.4.240.0020.00516.44
7.4.230.0070.00016.62
7.4.220.0150.00616.62
7.4.210.0080.00616.51
7.4.200.0070.00016.55
7.4.190.0000.00716.40
7.4.160.0060.00916.31
7.4.150.0100.01017.40
7.4.140.0050.01117.86
7.4.130.0090.00816.48
7.4.120.0110.00616.47
7.4.110.0140.00316.39
7.4.100.0040.01416.50
7.4.90.0100.00716.50
7.4.80.0030.01319.39
7.4.70.0100.00716.63
7.4.60.0030.01316.39
7.4.50.0080.00016.56
7.4.40.0060.00622.77
7.4.30.0080.00816.30
7.4.00.0070.01014.81
7.3.330.0060.00013.14
7.3.320.0000.00513.30
7.3.310.0040.00416.29
7.3.300.0040.00416.16
7.3.290.0060.00916.30
7.3.280.0120.00816.31
7.3.270.0130.00317.40
7.3.260.0150.00416.55
7.3.250.0140.00816.27
7.3.240.0060.01216.58
7.3.230.0130.01016.39
7.3.210.0080.01116.53
7.3.200.0130.01019.39
7.3.190.0090.01116.50
7.3.180.0100.00716.35
7.3.170.0030.01316.27
7.3.160.0090.00616.31
7.3.120.0100.00714.85
7.3.110.0060.01314.91
7.3.100.0060.00914.94
7.3.90.0030.00715.00
7.3.80.0040.00714.75
7.3.70.0090.00014.79
7.3.60.0000.01314.66
7.3.50.0090.00614.65
7.3.40.0090.00914.65
7.3.30.0100.00714.69
7.3.20.0030.00616.68
7.3.10.0040.01116.52
7.3.00.0060.00616.52
7.2.330.0100.00716.69
7.2.320.0070.01016.48
7.2.310.0130.00916.29
7.2.300.0090.01316.55
7.2.290.0100.00716.50
7.2.250.0030.01314.83
7.2.240.0130.00614.46
7.2.230.0090.00614.92
7.2.220.0000.01614.79
7.2.210.0060.00614.59
7.2.200.0060.00315.04
7.2.190.0070.00314.98
7.2.180.0110.00714.96
7.2.170.0040.00814.99
7.2.60.0070.00716.86
7.2.00.0030.00919.26
7.1.330.0070.00715.30
7.1.320.0000.01415.79
7.1.310.0070.00715.78
7.1.300.0100.00315.62
7.1.290.0090.00915.66
7.1.280.0000.01215.52
7.1.270.0070.00715.48
7.1.260.0000.01315.34
7.1.200.0030.00615.55
7.1.100.0080.00318.24
7.1.70.0040.00416.80
7.1.60.0060.00619.46
7.1.50.0060.01516.86
7.1.00.0070.07322.33
7.0.200.0000.01016.76
7.0.140.0030.07022.08
7.0.60.0070.07019.93
7.0.50.0070.06317.83
7.0.40.0030.04720.09
7.0.30.0200.04320.20
7.0.20.0270.08320.11
7.0.10.0300.07020.08
7.0.00.0100.06720.15
5.6.280.0000.07720.77
5.6.210.0070.06020.66
5.6.200.0070.05318.19
5.6.190.0100.05020.55
5.6.180.0330.07320.50
5.6.170.0130.04320.44
5.6.160.0070.07020.47
5.6.150.0070.03318.16
5.6.140.0030.08018.28
5.6.130.0100.05018.16
5.6.120.0000.09021.14
5.6.110.0030.08321.02
5.6.100.0100.05720.98
5.6.90.0130.08320.94
5.6.80.0100.08020.41
5.6.70.4400.03320.40
5.5.350.0130.07320.45
5.5.340.0130.04017.97
5.5.330.0000.08320.29
5.5.320.0230.05020.36
5.5.310.0270.06720.33
5.5.300.0030.04317.98
5.5.290.0030.08318.03
5.5.280.0070.07720.62
5.5.270.0100.07320.96
5.5.260.0070.07020.64
5.5.250.0070.08720.69
5.5.240.0070.05720.16
5.4.450.0770.05019.45
5.4.440.0730.07319.60
5.4.430.0130.05319.54
5.4.420.0830.05719.29
5.4.410.0870.06019.45
5.4.400.0570.05719.22
5.4.390.0670.06018.99
5.4.380.0300.05018.73
5.4.370.0430.07018.83
5.4.360.0230.05718.74
5.4.350.0330.05318.79
5.4.340.0500.05018.72
5.4.320.0060.03612.50
5.4.310.0050.03912.50
5.4.300.0050.03812.51
5.4.290.0080.04612.49
5.4.280.0070.06512.38
5.4.270.0060.03912.38
5.4.260.0040.04912.38
5.4.250.0040.04512.38
5.4.240.0100.05612.38
5.4.230.0250.07312.38
5.4.220.0160.06612.37
5.4.210.0070.04512.38
5.4.200.0090.03712.37
5.4.190.0080.04112.37
5.4.180.0080.03512.38
5.4.170.0050.03712.38
5.4.160.0090.04112.38
5.4.150.0090.04012.38
5.4.140.0070.03812.06
5.4.130.0050.03712.04
5.4.120.0080.03412.00
5.4.110.0050.03712.00
5.4.100.0090.03712.00
5.4.90.0040.04012.00
5.4.80.0050.03912.00
5.4.70.0040.03912.00
5.4.60.0070.03712.00
5.4.50.0070.03512.00
5.4.40.0060.04711.99
5.4.30.0020.05111.98
5.4.20.0090.03211.98
5.4.10.0030.05511.98
5.4.00.0180.07911.48
5.3.290.0070.03812.80
5.3.280.0110.05812.71
5.3.270.0040.06912.73
5.3.260.0110.08312.72
5.3.250.0050.05912.71
5.3.240.0110.05312.72
5.3.230.0120.04712.71
5.3.220.0070.04612.68
5.3.210.0100.04212.68
5.3.200.0080.05312.68
5.3.190.0090.05712.67
5.3.180.0100.04312.67
5.3.170.0050.04612.66
5.3.160.0040.05412.67
5.3.150.0060.06312.67
5.3.140.0070.06912.66
5.3.130.0110.06512.66
5.3.120.0100.05312.66
5.3.110.0100.05512.66
5.3.100.0110.05012.13
5.3.90.0110.05012.11
5.3.80.0180.07012.10
5.3.70.0110.05812.10
5.3.60.0090.05012.08
5.3.50.0110.04912.03
5.3.40.0160.05712.03
5.3.30.0080.04911.99
5.3.20.0090.05011.77
5.3.10.0090.04611.73
5.3.00.0040.05111.72
5.2.170.0040.0449.22
5.2.160.0110.0339.22
5.2.150.0070.0429.22
5.2.140.0070.0369.22
5.2.130.0020.0669.18
5.2.120.0180.0639.18
5.2.110.0110.0469.20
5.2.100.0070.0369.19
5.2.90.0100.0339.18
5.2.80.0050.0359.18
5.2.70.0040.0349.19
5.2.60.0060.0329.13
5.2.50.0040.0329.11
5.2.40.0050.0309.08
5.2.30.0050.0369.05
5.2.20.0110.0689.04
5.2.10.0050.0298.95
5.2.00.0090.0388.82
5.1.60.0060.0278.10
5.1.50.0040.0358.09
5.1.40.0090.0298.07
5.1.30.0030.0308.43
5.1.20.0040.0278.45
5.1.10.0060.0258.17
5.1.00.0040.0268.16
5.0.50.0060.0196.65
5.0.40.0050.0196.51
5.0.30.0040.0386.32
5.0.20.0040.0206.29
5.0.10.0020.0226.27
5.0.00.0040.0306.25
4.4.90.0030.0164.78
4.4.80.0000.0194.75
4.4.70.0010.0174.75
4.4.60.0010.0174.75
4.4.50.0040.0144.77
4.4.40.0030.0254.71
4.4.30.0070.0184.76
4.4.20.0030.0304.85
4.4.10.0060.0304.85
4.4.00.0040.0374.76
4.3.110.0050.0214.67
4.3.100.0050.0224.66
4.3.90.0050.0154.64
4.3.80.0040.0364.58
4.3.70.0040.0214.63
4.3.60.0040.0224.63
4.3.50.0040.0214.62
4.3.40.0030.0354.54
4.3.30.0060.0173.30
4.3.20.0030.0173.28
4.3.10.0050.0163.24
4.3.00.0330.02710.54

preferences:
43.58 ms | 401 KiB | 5 Q