3v4l.org

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

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.0070.01016.61
8.3.50.0100.01018.06
8.3.40.0120.00318.84
8.3.30.0030.01018.66
8.3.20.0050.00320.34
8.3.10.0050.00323.66
8.3.00.0040.00419.17
8.2.180.0070.01116.75
8.2.170.0110.00322.96
8.2.160.0120.00320.53
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00417.50
8.2.110.0060.00320.39
8.2.100.0040.00817.80
8.2.90.0070.00319.09
8.2.80.0030.00617.97
8.2.70.0040.00417.49
8.2.60.0030.00617.80
8.2.50.0030.00618.07
8.2.40.0000.00719.26
8.2.30.0000.00820.53
8.2.20.0000.00817.55
8.2.10.0000.00817.93
8.2.00.0040.00418.09
8.1.280.0150.00325.92
8.1.270.0090.00023.80
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.23
8.1.230.0100.00317.66
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0060.00318.43
8.1.160.0000.00822.06
8.1.150.0030.00518.81
8.1.140.0000.00819.51
8.1.130.0030.00517.63
8.1.120.0040.00417.42
8.1.110.0000.00817.43
8.1.100.0000.00717.39
8.1.90.0070.00017.42
8.1.80.0000.00817.29
8.1.70.0040.00417.41
8.1.60.0000.00817.48
8.1.50.0000.00817.54
8.1.40.0000.00817.38
8.1.30.0040.00717.67
8.1.20.0040.00417.71
8.1.10.0000.00817.59
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00818.29
8.0.270.0030.00317.14
8.0.260.0070.00017.09
8.0.250.0050.00216.89
8.0.240.0000.00816.84
8.0.230.0030.00616.99
8.0.220.0080.00016.87
8.0.210.0030.00316.78
8.0.200.0000.00716.94
8.0.190.0000.00816.98
8.0.180.0040.00416.80
8.0.170.0050.00316.80
8.0.160.0080.00016.96
8.0.150.0040.00416.91
8.0.140.0040.00416.82
8.0.130.0060.00013.35
8.0.120.0030.00516.84
8.0.110.0000.00716.73
8.0.100.0000.00716.88
8.0.90.0000.00716.87
8.0.80.0090.00616.95
8.0.70.0020.00516.77
8.0.60.0070.00016.84
8.0.50.0000.00716.73
8.0.30.0130.00616.96
8.0.20.0100.01017.40
8.0.10.0060.00316.90
8.0.00.0090.00816.72
7.4.330.0000.00515.08
7.4.320.0030.00316.35
7.4.300.0030.00316.51
7.4.290.0040.00416.46
7.4.280.0090.00016.59
7.4.270.0000.00716.43
7.4.260.0000.00716.47
7.4.250.0000.00716.55
7.4.240.0010.00716.62
7.4.230.0070.00016.39
7.4.220.0040.01516.55
7.4.210.0040.01016.61
7.4.200.0040.00416.62
7.4.160.0110.01116.50
7.4.150.0130.00917.40
7.4.140.0120.00617.86
7.4.130.0130.00616.52
7.4.120.0150.00316.50
7.4.110.0030.01516.56
7.4.100.0150.00316.54
7.4.90.0070.01016.60
7.4.80.0030.01619.39
7.4.70.0100.00616.50
7.4.60.0000.01616.53
7.4.50.0050.00316.32
7.4.40.0110.00616.57
7.4.30.0060.01216.56
7.4.00.0080.00314.91
7.3.330.0050.00013.38
7.3.320.0030.00313.42
7.3.310.0070.00016.31
7.3.300.0030.00316.30
7.3.290.0040.01116.32
7.3.280.0100.00616.38
7.3.270.0140.00317.40
7.3.260.0100.00716.26
7.3.250.0090.00816.39
7.3.240.0150.00116.29
7.3.230.0100.00616.39
7.3.210.0070.01016.38
7.3.200.0080.00816.26
7.3.190.0090.00616.37
7.3.180.0060.01216.45
7.3.170.0110.00516.41
7.3.160.0030.01316.38
7.3.10.0000.01016.63
7.3.00.0100.00316.56
7.2.330.0100.00716.55
7.2.320.0070.01416.57
7.2.310.0100.00716.31
7.2.300.0090.00816.52
7.2.290.0160.00316.58
7.2.130.0060.00916.90
7.2.120.0070.01016.55
7.2.110.0100.00016.73
7.2.100.0070.00316.79
7.2.90.0070.00716.88
7.2.80.0060.00616.89
7.2.70.0030.01216.74
7.2.60.0080.00816.74
7.2.50.0030.01216.89
7.2.40.0030.00716.86
7.2.30.0060.00916.60
7.2.20.0060.00916.78
7.2.10.0070.00716.68
7.2.00.0050.01017.99
7.1.250.0080.00315.71
7.1.200.0040.00815.37
7.1.100.0040.00718.31
7.1.70.0040.00417.05
7.1.60.0070.01819.43
7.1.50.0000.01016.80
7.1.00.0070.07022.48
7.0.200.0070.00714.89
7.0.60.0070.08720.02
7.0.50.0100.08017.73
7.0.40.0000.08320.16
7.0.30.0270.04720.20
7.0.20.0230.06020.12
7.0.10.0070.06720.08
7.0.00.0100.05020.38
5.6.280.0000.03321.07
5.6.210.0070.07320.71
5.6.200.0070.08318.18
5.6.190.0070.06720.48
5.6.180.0130.04320.60
5.6.170.0300.08020.45
5.6.160.0070.08020.54
5.6.150.0030.08318.16
5.6.140.0100.06018.19
5.6.130.0000.08718.21
5.6.120.0070.07020.99
5.6.110.0100.07720.96
5.6.100.0070.07720.98
5.6.90.0030.04321.12
5.6.80.0000.05320.29
5.5.350.0330.07720.45
5.5.340.0000.05017.99
5.5.330.0000.04720.41
5.5.320.0330.06020.28
5.5.310.0400.06720.24
5.5.300.0100.03718.01
5.5.290.0030.04017.94
5.5.280.0170.07320.79
5.5.270.0030.05320.89
5.5.260.0030.04020.88
5.5.250.0070.04320.68
5.5.240.0100.07320.13
5.4.450.0730.06719.58
5.4.440.0870.05719.64
5.4.430.0770.05019.38
5.4.420.0730.05719.33
5.4.410.0700.06019.45
5.4.400.0870.06319.25
5.4.390.0570.06319.30
5.4.380.0900.04718.84
5.4.370.0700.05719.12
5.4.360.0570.06019.19
5.4.350.0770.04018.87
5.4.340.0600.05719.09
5.4.320.0670.05019.14
5.4.310.0800.04318.91
5.4.300.0830.04319.25
5.4.290.0730.05319.01
5.4.280.0770.05319.37
5.4.270.0700.06719.14
5.4.260.0770.05018.83
5.4.250.0800.04719.23
5.4.240.0600.05719.05
5.4.230.0900.07319.13
5.4.220.0800.04719.36
5.4.210.0770.06318.97
5.4.200.0770.05019.26
5.4.190.0630.06019.14
5.4.180.0700.04719.13
5.4.170.0700.05719.21
5.4.160.0770.07719.13
5.4.150.0830.05319.20
5.4.140.0630.07716.61
5.4.130.0530.05316.35
5.4.120.0700.05016.45
5.4.110.0570.05316.56
5.4.100.0530.06016.60
5.4.90.0570.05716.32
5.4.80.0670.04316.24
5.4.70.0670.04316.46
5.4.60.0600.05316.13
5.4.50.0600.05016.61
5.4.40.0800.04016.54
5.4.30.0770.05716.50
5.4.20.0700.05316.16
5.4.10.0730.05016.22
5.4.00.0800.05015.98

preferences:
47.53 ms | 400 KiB | 5 Q