3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public /* initonly */ $bar; public /* initonly */ $computedBar; public function __construct($bar) { $this->bar = $bar; // Do something special with bar $this->computedBar = $bar; } } $foo = new Foo(); // $foo2 = clone $foo { computedBar: 'baz' };

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.5.30.0110.00717.31
8.5.20.0110.00819.59
8.5.10.0100.00818.44
8.5.00.0130.00920.10
8.4.180.0120.01219.69
8.4.170.0110.01220.57
8.4.160.0130.01020.38
8.4.150.0080.00516.93
8.4.140.0150.00617.54
8.4.130.0070.00718.77
8.4.120.0060.00522.54
8.4.110.0050.00518.66
8.4.100.0110.00817.89
8.4.90.0140.00520.57
8.4.80.0030.00520.53
8.4.70.0100.01119.16
8.4.60.0050.00420.83
8.4.50.0090.01120.18
8.4.40.0100.01017.71
8.4.30.0030.00618.60
8.4.20.0130.00719.95
8.4.10.0060.00319.55
8.3.300.0130.00819.13
8.3.290.0030.00620.81
8.3.280.0140.00618.48
8.3.270.0100.00916.44
8.3.260.0060.00416.38
8.3.250.0020.00617.22
8.3.240.0110.00916.52
8.3.230.0060.00816.80
8.3.220.0060.01019.04
8.3.210.0100.00216.64
8.3.200.0060.00316.26
8.3.190.0120.00617.16
8.3.180.0100.00818.81
8.3.170.0140.00417.18
8.3.160.0120.00616.52
8.3.150.0090.00916.99
8.3.140.0110.00716.82
8.3.130.0110.00016.78
8.3.120.0160.00020.69
8.3.110.0040.00420.94
8.3.100.0040.00418.54
8.3.90.0000.00826.77
8.3.80.0030.00619.36
8.3.70.0090.00616.61
8.3.60.0140.00718.68
8.3.50.0120.00724.51
8.3.40.0030.01621.88
8.3.30.0120.00318.71
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0030.00526.16
8.2.300.0150.00520.33
8.2.290.0100.00917.15
8.2.280.0130.00720.38
8.2.270.0060.01316.50
8.2.260.0070.01118.95
8.2.250.0080.00018.36
8.2.240.0000.00917.12
8.2.230.0040.00422.58
8.2.220.0080.00024.06
8.2.210.0080.00026.77
8.2.200.0030.00618.88
8.2.190.0110.00716.78
8.2.180.0110.01125.92
8.2.170.0060.00918.91
8.2.160.0100.00722.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0070.00026.35
8.2.110.0070.00322.21
8.2.100.0110.00417.59
8.2.90.0030.00618.16
8.2.80.0050.00318.04
8.2.70.0040.00417.50
8.2.60.0090.00317.50
8.2.50.0000.00818.05
8.2.40.0080.00019.82
8.2.30.0000.00718.05
8.2.20.0000.00717.88
8.2.10.0000.00719.24
8.2.00.0050.00219.24
8.1.340.0090.01320.16
8.1.330.0130.00616.41
8.1.320.0090.01116.20
8.1.310.0100.00716.66
8.1.300.0000.01016.22
8.1.290.0040.00430.84
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0000.00828.09
8.1.250.0050.00328.09
8.1.240.0140.00722.00
8.1.230.0060.00622.81
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0040.00417.10
8.1.180.0050.00318.10
8.1.170.0040.00418.57
8.1.160.0080.00018.76
8.1.150.0040.00418.69
8.1.140.0070.00318.82
8.1.130.0000.00920.08
8.1.120.0070.00017.28
8.1.110.0030.00517.34
8.1.100.0030.00617.39
8.1.90.0000.00717.39
8.1.80.0060.00617.25
8.1.70.0030.00317.33
8.1.60.0030.00617.42
8.1.50.0020.00517.36
8.1.40.0040.00417.45
8.1.30.0000.00717.49
8.1.20.0080.00017.59
8.1.10.0030.00517.48
8.1.00.0000.00917.39
8.0.300.0000.00819.78
8.0.290.0000.00816.75
8.0.280.0070.00018.39
8.0.270.0030.00318.02
8.0.260.0000.00618.58
8.0.250.0040.00416.93
8.0.240.0040.00416.92
8.0.230.0040.00416.98
8.0.220.0030.00316.90
8.0.210.0070.00016.96
8.0.200.0000.00716.98
8.0.190.0000.00716.88
8.0.180.0040.00416.96
8.0.170.0080.00016.93
8.0.160.0050.00316.86
8.0.150.0040.00416.73
8.0.140.0000.00716.86
8.0.130.0050.00013.37
8.0.120.0020.00516.87
8.0.110.0000.00716.73
8.0.100.0070.00016.92
8.0.90.0000.00716.69
8.0.80.0100.00816.86
8.0.70.0080.00016.79
8.0.60.0050.00216.96
8.0.50.0050.00216.69
8.0.30.0080.00817.09
8.0.20.0140.00717.04
8.0.10.0040.00316.83
8.0.00.0000.01816.93
7.4.330.0000.00515.55
7.4.320.0030.00316.41
7.4.300.0030.00316.42
7.4.290.0030.00616.47
7.4.280.0040.00416.52
7.4.270.0070.00016.40
7.4.260.0000.00513.15
7.4.250.0000.00716.49
7.4.240.0050.00216.48
7.4.230.0030.00316.62
7.4.220.0030.00416.45
7.4.210.0060.01016.50
7.4.200.0000.00716.55
7.4.130.0060.01216.53
7.4.120.0070.01016.47
7.4.110.0140.00316.45
7.4.100.0100.01016.35
7.4.90.0090.00916.31
7.4.80.0030.01316.36
7.4.70.0100.00716.42
7.4.60.0070.01016.48
7.4.50.0070.01416.45
7.4.40.0100.01016.43
7.4.30.0070.01016.27
7.4.20.0030.01316.50
7.4.10.0140.00316.30
7.4.00.0090.00816.18
7.3.330.0000.00716.39
7.3.320.0030.00313.29
7.3.310.0030.00316.32
7.3.300.0000.00616.23
7.3.290.0090.01116.36
7.3.260.0100.00716.41
7.3.240.0170.00016.27
7.3.230.0100.00716.47
7.3.220.0080.01216.21
7.3.210.0130.00416.26
7.3.200.0030.01516.31
7.3.190.0090.00916.09
7.3.180.0070.01316.27
7.3.170.0090.00916.14
7.3.160.0100.01016.30
7.3.150.0080.00816.59
7.3.140.0100.00616.30
7.3.130.0070.01016.54
7.3.120.0040.01216.19
7.3.110.0060.01016.31
7.3.100.0100.00716.17
7.3.90.0130.00316.26
7.3.80.0100.01016.34
7.3.70.0090.01216.36
7.3.60.0100.01016.23
7.3.50.0090.00916.23
7.3.40.0030.01316.38
7.3.30.0070.01016.30
7.3.20.0110.00716.38
7.3.10.0070.01116.32
7.3.00.0070.01016.21
7.2.340.0100.00716.63
7.2.330.0050.01416.51
7.2.320.0120.01216.22
7.2.310.0130.00716.70
7.2.300.0120.00616.41
7.2.290.0130.00416.10
7.2.280.0160.01016.39
7.2.270.0100.00616.28
7.2.260.0060.01116.30
7.2.250.0160.00016.50
7.2.240.0100.00716.22
7.2.230.0100.00716.40
7.2.220.0070.01016.09
7.2.210.0100.01016.49
7.2.200.0130.00716.42
7.2.190.0090.00916.30
7.2.180.0030.01516.47
7.2.170.0070.01016.52
7.2.160.0070.01016.43
7.2.150.0100.00716.54
7.2.140.0110.00716.43
7.2.130.0090.00916.45
7.2.120.0060.01216.23
7.2.110.0090.00916.34
7.2.100.0120.00616.52
7.2.90.0090.01016.55
7.2.80.0150.00416.23
7.2.70.0060.01216.50
7.2.60.0180.00416.43
7.2.50.0060.01216.39
7.2.40.0060.01616.63
7.2.30.0110.00716.41
7.2.20.0100.01016.23
7.2.10.0150.00316.46
7.2.00.0070.01016.66

preferences:
45.33 ms | 1554 KiB | 5 Q