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) { $this->__construct($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.0140.00416.74
8.3.50.0170.00121.93
8.3.40.0130.00618.93
8.3.30.0110.00418.84
8.3.20.0040.00420.34
8.3.10.0060.00323.48
8.3.00.0040.00419.38
8.2.180.0160.00018.11
8.2.170.0100.01022.96
8.2.160.0070.01020.53
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0070.01126.16
8.2.120.0060.00322.25
8.2.110.0090.00022.43
8.2.100.0090.00317.72
8.2.90.0040.00419.16
8.2.80.0060.00317.97
8.2.70.0000.00817.50
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0040.00419.95
8.2.30.0100.00019.86
8.2.20.0000.00717.73
8.2.10.0000.00717.99
8.2.00.0000.01017.73
8.1.280.0120.00325.92
8.1.270.0160.00023.72
8.1.260.0000.00826.35
8.1.250.0090.00028.09
8.1.240.0040.00423.88
8.1.230.0070.00419.04
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0000.00817.41
8.1.180.0040.00918.10
8.1.170.0070.00318.50
8.1.160.0070.00021.94
8.1.150.0000.00818.43
8.1.140.0070.00017.33
8.1.130.0030.00317.80
8.1.120.0070.00017.38
8.1.110.0040.00417.29
8.1.100.0040.00317.21
8.1.90.0050.00317.31
8.1.80.0050.00317.33
8.1.70.0040.00417.19
8.1.60.0030.00617.46
8.1.50.0000.00817.30
8.1.40.0030.00617.41
8.1.30.0000.00817.40
8.1.20.0000.00817.61
8.1.10.0030.00617.51
8.1.00.0040.00417.49
8.0.300.0080.00018.77
8.0.290.0000.00717.18
8.0.280.0030.00318.38
8.0.270.0030.00316.77
8.0.260.0040.00417.05
8.0.250.0030.00316.91
8.0.240.0030.00316.89
8.0.230.0000.00716.84
8.0.220.0040.00416.76
8.0.210.0040.00416.88
8.0.200.0030.00316.78
8.0.190.0000.00716.91
8.0.180.0050.00316.94
8.0.170.0050.00316.93
8.0.160.0030.00517.00
8.0.150.0070.00016.85
8.0.140.0030.00516.88
8.0.130.0000.00513.38
8.0.120.0000.00816.83
8.0.110.0050.00316.86
8.0.100.0040.00416.67
8.0.90.0070.00016.80
8.0.80.0100.01016.88
8.0.70.0050.00216.95
8.0.60.0040.00416.70
8.0.50.0000.00716.95
8.0.30.0150.00716.85
8.0.20.0120.00917.40
8.0.10.0000.00716.73
8.0.00.0120.01216.82
7.4.330.0030.00315.00
7.4.320.0060.00016.49
7.4.300.0030.00316.58
7.4.290.0060.00316.48
7.4.280.0070.00316.32
7.4.270.0080.00016.54
7.4.260.0070.00016.53
7.4.250.0000.00716.32
7.4.240.0020.00516.49
7.4.230.0070.00016.19
7.4.220.0120.00616.40
7.4.210.0080.00716.52
7.4.200.0000.00716.29
7.4.190.0000.00716.40
7.4.160.0090.00616.58
7.4.150.0140.00317.40
7.4.140.0060.01017.86
7.4.130.0130.01016.56
7.4.120.0100.00716.46
7.4.110.0030.01616.55
7.4.100.0070.01016.60
7.4.90.0150.00916.39
7.4.80.0080.01219.39
7.4.70.0080.00816.25
7.4.60.0100.01016.36
7.4.50.0060.00316.52
7.4.40.0030.01122.77
7.4.30.0120.00316.37
7.4.00.0140.00014.75
7.3.330.0050.00013.17
7.3.320.0000.00513.07
7.3.310.0000.00716.15
7.3.300.0040.00416.35
7.3.290.0040.01116.20
7.3.280.0090.01016.33
7.3.270.0110.00717.40
7.3.260.0050.01616.27
7.3.250.0150.00516.37
7.3.240.0000.01616.19
7.3.230.0070.01316.64
7.3.210.0030.01416.21
7.3.200.0130.01019.39
7.3.190.0150.00616.44
7.3.180.0030.01216.36
7.3.170.0040.01116.32
7.3.160.0070.01016.48
7.3.120.0070.00414.79
7.2.330.0050.01416.31
7.2.320.0090.01216.52
7.2.310.0130.00916.27
7.2.300.0090.00916.56
7.2.290.0040.01216.63
7.2.60.0030.01316.78
7.2.00.0090.00619.10
7.1.200.0040.01115.71
7.1.100.0000.01017.89
7.1.70.0040.00416.71
7.1.60.0160.00319.46
7.1.50.0100.01416.93
7.1.00.0030.07722.27
7.0.200.0070.00716.57
7.0.140.0030.07322.00
7.0.60.0130.09021.68
7.0.50.0100.07317.88
7.0.40.0100.08320.26
7.0.30.0530.07320.25
7.0.20.0330.08020.30
7.0.10.0070.04020.23
7.0.00.0030.05720.20
5.6.280.0000.07321.07
5.6.210.0100.08320.60
5.6.200.0000.04318.23
5.6.190.0170.07020.46
5.6.180.0230.05720.39
5.6.170.0100.04720.48
5.6.160.0100.08320.55
5.6.150.0070.08318.19
5.6.140.0100.06318.20
5.6.130.0100.06018.27
5.6.120.0000.08320.97
5.6.110.0170.07320.98
5.6.100.0070.07721.09
5.6.90.0130.06721.11
5.6.80.0130.07320.43
5.5.350.0000.04720.41
5.5.340.0030.08318.04
5.5.330.0070.08020.37
5.5.320.0430.07320.30
5.5.310.0100.04720.19
5.5.300.0070.07317.94
5.5.290.0030.07017.98
5.5.280.0070.04720.99
5.5.270.0030.08720.80
5.5.260.0070.08320.89
5.5.250.0100.08320.55
5.5.240.0070.07320.28
5.4.450.0530.07019.70
5.4.440.1000.04319.16
5.4.430.0270.06319.70
5.4.420.0570.06319.72
5.4.410.0870.07019.32
5.4.400.0500.05719.15
5.4.390.0530.06319.02
5.4.380.0200.05718.50
5.4.370.0100.03718.74
5.4.360.0030.04318.77
5.4.350.0060.04512.03
5.4.340.0110.02912.02
5.4.320.0050.04512.50
5.4.310.0070.03812.50
5.4.300.0080.03812.51
5.4.290.0130.05112.48
5.4.280.0110.05412.38
5.4.270.0130.06512.38
5.4.260.0090.07212.38
5.4.250.0160.05512.39
5.4.240.0110.05412.38
5.4.230.0110.04612.38
5.4.220.0060.04012.38
5.4.210.0070.04812.37
5.4.200.0090.04612.38
5.4.190.0080.03712.38
5.4.180.0080.03512.37
5.4.170.0090.04112.38
5.4.160.0080.05412.38
5.4.150.0090.05312.38
5.4.140.0070.05112.06
5.4.130.0160.04912.05
5.4.120.0090.05412.00
5.4.110.0060.04812.00
5.4.100.0050.05212.00
5.4.90.0120.08412.00
5.4.80.0110.07212.00
5.4.70.0100.05612.00
5.4.60.0080.04812.00
5.4.50.0060.05012.00
5.4.40.0110.03611.98
5.4.30.0040.03911.98
5.4.20.0070.03711.98
5.4.10.0080.03911.98
5.4.00.0040.03811.48
5.3.290.0070.04312.80
5.3.280.0080.04612.71
5.3.270.0100.06312.72
5.3.260.0070.04412.72
5.3.250.0080.03812.72
5.3.240.0100.04712.72
5.3.230.0060.04712.71
5.3.220.0090.03912.68
5.3.210.0080.04212.68
5.3.200.0110.03612.68
5.3.190.0060.04712.68
5.3.180.0100.03912.67
5.3.170.0070.03712.67
5.3.160.0090.03612.67
5.3.150.0050.04612.68
5.3.140.0110.03312.66
5.3.130.0090.03812.66
5.3.120.0060.04012.66
5.3.110.0110.06412.66
5.3.100.0110.04812.13
5.3.90.0090.05112.11
5.3.80.0050.05512.10
5.3.70.0130.06012.10
5.3.60.0090.04412.08
5.3.50.0070.04812.03
5.3.40.0070.03712.03
5.3.30.0110.04811.99
5.3.20.0080.03811.77
5.3.10.0070.04411.74
5.3.00.0040.03911.72
5.2.170.0040.0359.23
5.2.160.0090.0389.23
5.2.150.0060.0399.23
5.2.140.0100.0529.22
5.2.130.0040.0339.18
5.2.120.0050.0319.18
5.2.110.0060.0319.19
5.2.100.0050.0329.18
5.2.90.0100.0519.19
5.2.80.0040.0449.18
5.2.70.0080.0429.18
5.2.60.0060.0389.13
5.2.50.0090.0419.11
5.2.40.0060.0429.08
5.2.30.0080.0389.05
5.2.20.0070.0379.04
5.2.10.0050.0478.95
5.2.00.0050.0408.81
5.1.60.0110.0338.10
5.1.50.0060.0268.09
5.1.40.0040.0388.07
5.1.30.0030.0288.42
5.1.20.0060.0248.45
5.1.10.0060.0278.17
5.1.00.0070.0228.17
5.0.50.0040.0216.65
5.0.40.0040.0206.50
5.0.30.0030.0426.32
5.0.20.0020.0286.29
5.0.10.0050.0276.27
5.0.00.0030.0416.25
4.4.90.0030.0184.78
4.4.80.0030.0214.76
4.4.70.0040.0204.76
4.4.60.0040.0154.75
4.4.50.0040.0224.77
4.4.40.0030.0274.71
4.4.30.0090.0184.76
4.4.20.0050.0204.85
4.4.10.0060.0224.85
4.4.00.0100.0514.76
4.3.110.0030.0194.67
4.3.100.0020.0174.66
4.3.90.0030.0154.63
4.3.80.0030.0254.58
4.3.70.0020.0194.63
4.3.60.0080.0514.63
4.3.50.0030.0164.63
4.3.40.0050.0284.54
4.3.30.0020.0213.30
4.3.20.0100.0383.28
4.3.10.0020.0183.23
4.3.00.0130.0177.44

preferences:
45.47 ms | 400 KiB | 5 Q