3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foobar { protected $bar; public function __constuct(Bar $bar = null) { $this->bar = $bar; } } class Bar {} $foo = new Foobar();

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.0030.01716.50
8.3.50.0160.00621.99
8.3.40.0130.00318.68
8.3.30.0070.00718.98
8.3.20.0040.00420.30
8.3.10.0050.00321.65
8.3.00.0080.00019.25
8.2.180.0110.00718.30
8.2.170.0140.00422.96
8.2.160.0110.00420.36
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0030.00622.27
8.2.110.0030.00722.30
8.2.100.0090.00317.59
8.2.90.0030.00519.27
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0050.00217.68
8.2.50.0000.00918.07
8.2.40.0000.00819.95
8.2.30.0060.00319.79
8.2.20.0040.00417.62
8.2.10.0040.00418.05
8.2.00.0080.00417.66
8.1.280.0140.00725.92
8.1.270.0050.00324.04
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00623.96
8.1.230.0110.00019.11
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00917.13
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0040.00418.51
8.1.160.0000.00721.94
8.1.150.0000.00818.57
8.1.140.0000.00717.32
8.1.130.0000.00717.87
8.1.120.0000.00717.39
8.1.110.0000.00717.40
8.1.100.0030.00617.39
8.1.90.0030.00417.28
8.1.80.0030.00317.32
8.1.70.0040.00417.32
8.1.60.0000.00717.50
8.1.50.0050.00317.39
8.1.40.0000.00717.34
8.1.30.0000.00817.54
8.1.20.0000.00717.45
8.1.10.0070.00017.38
8.1.00.0040.00417.36
8.0.300.0040.00420.80
8.0.290.0000.00817.15
8.0.280.0030.00318.41
8.0.270.0040.00417.14
8.0.260.0030.00317.17
8.0.250.0000.00716.85
8.0.240.0000.00816.82
8.0.230.0020.00516.91
8.0.220.0030.00316.84
8.0.210.0000.00816.72
8.0.200.0070.00016.85
8.0.190.0040.00416.77
8.0.180.0040.00416.86
8.0.170.0040.00416.77
8.0.160.0000.00716.82
8.0.150.0030.00316.75
8.0.140.0000.00716.75
8.0.130.0060.00013.27
8.0.120.0070.00016.81
8.0.110.0000.00716.86
8.0.100.0080.00016.86
8.0.90.0040.00416.80
8.0.80.0060.00916.71
8.0.70.0000.00716.69
8.0.60.0040.00416.85
8.0.50.0000.00716.85
8.0.30.0120.00716.99
8.0.20.0140.00417.40
8.0.10.0000.00816.87
8.0.00.0110.01016.57
7.4.330.0050.00015.00
7.4.320.0000.00716.41
7.4.300.0000.00616.44
7.4.290.0120.00016.35
7.4.280.0040.00416.52
7.4.270.0000.00816.45
7.4.260.0000.00716.43
7.4.250.0000.00816.54
7.4.240.0020.00516.40
7.4.230.0040.00416.54
7.4.220.0150.00316.41
7.4.210.0100.00716.56
7.4.200.0000.00716.55
7.4.190.0000.00716.30
7.4.160.0090.00916.67
7.4.150.0120.00617.40
7.4.140.0040.01317.86
7.4.130.0110.00516.33
7.4.120.0140.00316.40
7.4.110.0120.00616.45
7.4.100.0160.00616.43
7.4.90.0080.01116.46
7.4.80.0120.01519.39
7.4.70.0140.00816.47
7.4.60.0090.00616.44
7.4.50.0000.00816.46
7.4.40.0070.00722.77
7.4.30.0140.00416.34
7.4.00.0090.00614.84
7.3.330.0060.00013.04
7.3.320.0000.00513.10
7.3.310.0070.00016.20
7.3.300.0000.00716.06
7.3.290.0080.00516.17
7.3.280.0090.00916.15
7.3.270.0060.01217.40
7.3.260.0130.00316.42
7.3.250.0140.00616.23
7.3.240.0060.01116.45
7.3.230.0110.00616.39
7.3.210.0120.00616.07
7.3.200.0090.01419.39
7.3.190.0100.00816.27
7.3.180.0090.00616.11
7.3.170.0090.00816.27
7.3.160.0070.00716.28
7.3.120.0040.01214.61
7.2.330.0060.01316.65
7.2.320.0130.00316.66
7.2.310.0030.01916.63
7.2.300.0070.01016.52
7.2.290.0060.01016.28
7.2.00.0030.01019.09
7.1.100.0030.00617.70
7.1.70.0000.00817.05
7.1.60.0000.01319.46
7.1.50.0060.01516.80
7.1.00.0030.07722.40
7.0.200.0000.01016.32
7.0.140.0000.07722.12
7.0.60.0170.07719.92
7.0.50.0030.07017.84
7.0.40.0030.08720.09
7.0.30.0330.06320.12
7.0.20.0400.07020.26
7.0.10.0070.08720.17
7.0.00.0130.08020.09
5.6.280.0100.06321.02
5.6.210.0070.07320.54
5.6.200.0000.09018.19
5.6.190.0070.09320.64
5.6.180.0170.08320.61
5.6.170.0230.03320.55
5.6.160.0070.07720.55
5.6.150.0000.08718.19
5.6.140.0100.06318.24
5.6.130.0070.05318.29
5.6.120.0070.05721.01
5.6.110.0000.04720.88
5.6.100.0170.08721.04
5.6.90.0200.07321.08
5.6.80.0130.07320.38
5.5.350.0330.06720.50
5.5.340.0100.06718.07
5.5.330.0030.08720.18
5.5.320.0170.05720.35
5.5.310.0270.06720.35
5.5.300.0100.03317.98
5.5.290.0070.07717.95
5.5.280.0030.08720.98
5.5.270.0030.06320.88
5.5.260.0030.06720.86
5.5.250.0070.08020.57
5.5.240.0170.06020.37
5.4.450.0630.06019.48
5.4.440.0730.05319.34
5.4.430.0570.05319.33
5.4.420.0170.05319.62
5.4.410.0700.04319.04
5.4.400.0830.05019.20
5.4.390.1000.06319.16
5.4.380.0230.06018.59
5.4.370.0370.05318.80
5.4.360.0370.04718.58
5.4.350.0270.06018.66
5.4.340.0470.03718.65
5.4.320.0040.03812.50
5.4.310.0080.04112.50
5.4.300.0070.03912.50
5.4.290.0080.05712.48
5.4.280.0060.03712.38
5.4.270.0050.03912.38
5.4.260.0070.03712.38
5.4.250.0040.04012.38
5.4.240.0080.03312.38
5.4.230.0050.03812.37
5.4.220.0060.03512.37
5.4.210.0090.03312.38
5.4.200.0040.04112.37
5.4.190.0020.04112.37
5.4.180.0100.04712.37
5.4.170.0070.04512.38
5.4.160.0100.03412.37
5.4.150.0050.04212.37
5.4.140.0060.03812.05
5.4.130.0040.03812.04
5.4.120.0070.03312.00
5.4.110.0050.03612.00
5.4.100.0070.03412.00
5.4.90.0040.03912.00
5.4.80.0060.03612.00
5.4.70.0040.03812.00
5.4.60.0070.03411.99
5.4.50.0100.03212.00
5.4.40.0090.03111.98
5.4.30.0050.03711.98
5.4.20.0060.03511.98
5.4.10.0030.03911.98
5.4.00.0070.03911.47
5.3.290.0050.04612.80
5.3.280.0100.03512.71
5.3.270.0100.03512.73
5.3.260.0080.03912.72
5.3.250.0080.03812.72
5.3.240.0070.03512.72
5.3.230.0060.03712.71
5.3.220.0060.03612.68
5.3.210.0050.04012.68
5.3.200.0080.03512.68
5.3.190.0060.03912.68
5.3.180.0080.03512.67
5.3.170.0090.03412.67
5.3.160.0070.03812.67
5.3.150.0080.03812.67
5.3.140.0050.03812.66
5.3.130.0050.03912.66
5.3.120.0040.04012.66
5.3.110.0080.03612.66
5.3.100.0060.03612.12
5.3.90.0050.03912.09
5.3.80.0040.03912.09
5.3.70.0100.03412.09
5.3.60.0050.03712.07
5.3.50.0070.03512.02
5.3.40.0040.04212.02
5.3.30.0070.03711.98
5.3.20.0030.04111.76
5.3.10.0060.03711.72
5.3.00.0050.04111.71
5.2.170.0060.0399.22
5.2.160.0030.0359.22
5.2.150.0050.0349.21
5.2.140.0070.0419.21
5.2.130.0020.0469.17
5.2.120.0060.0309.17
5.2.110.0050.0329.18
5.2.100.0050.0309.18
5.2.90.0070.0289.18
5.2.80.0050.0329.17
5.2.70.0070.0289.17
5.2.60.0070.0289.12
5.2.50.0070.0289.09
5.2.40.0030.0319.07
5.2.30.0080.0279.05
5.2.20.0040.0319.03
5.2.10.0050.0318.94
5.2.00.0080.0278.80
5.1.60.0030.0288.08
5.1.50.0060.0358.08
5.1.40.0060.0358.07
5.1.30.0080.0358.41
5.1.20.0020.0418.44
5.1.10.0060.0298.16
5.1.00.0050.0378.16
5.0.50.0050.0276.64
5.0.40.0070.0256.50
5.0.30.0050.0356.31
5.0.20.0030.0216.27
5.0.10.0050.0196.25
5.0.00.0050.0386.24
4.4.90.0040.0194.78
4.4.80.0040.0214.76
4.4.70.0050.0154.76
4.4.60.0060.0144.75
4.4.50.0030.0224.77
4.4.40.0050.0304.71
4.4.30.0020.0194.76
4.4.20.0000.0204.85
4.4.10.0020.0184.85
4.4.00.0060.0244.76
4.3.110.0070.0194.67
4.3.100.0010.0244.67
4.3.90.0050.0204.64
4.3.80.0060.0294.59
4.3.70.0020.0184.63
4.3.60.0030.0174.63
4.3.50.0050.0154.63
4.3.40.0020.0344.54
4.3.30.0020.0173.30
4.3.20.0010.0183.28
4.3.10.0040.0153.23
4.3.00.0330.02010.54

preferences:
41.64 ms | 401 KiB | 5 Q