3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class x { public function content(?string $content = null) :(this, string) { if ($content) return $this->setContent($content); return $this->content; } public function setContent($x) { $this->content = $x; } } $x = new x; $x->set

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.50
8.3.50.0150.00621.86
8.3.40.0070.01118.55
8.3.30.0140.00018.83
8.3.20.0030.00620.25
8.3.10.0050.00223.66
8.3.00.0070.00018.89
8.2.180.0040.01116.38
8.2.170.0140.00322.96
8.2.160.0100.00320.29
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0090.00020.89
8.2.110.0100.00022.07
8.2.100.0040.00719.64
8.2.90.0000.00819.05
8.2.80.0050.00317.97
8.2.70.0040.00417.38
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0030.00521.19
8.2.30.0050.00318.11
8.2.20.0080.00017.40
8.2.10.0000.00717.93
8.2.00.0000.00717.55
8.1.280.0110.00325.92
8.1.270.0080.00022.08
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0100.00022.18
8.1.230.0070.00419.16
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0060.00316.98
8.1.180.0040.00418.10
8.1.170.0080.00018.50
8.1.160.0070.00021.88
8.1.150.0000.00718.49
8.1.140.0030.00517.35
8.1.130.0000.00717.75
8.1.120.0000.00717.22
8.1.110.0050.00217.27
8.1.100.0030.00517.32
8.1.90.0000.00717.18
8.1.80.0050.00317.28
8.1.70.0000.00717.32
8.1.60.0000.00817.43
8.1.50.0040.00417.34
8.1.40.0040.00417.26
8.1.30.0040.00417.55
8.1.20.0030.00617.47
8.1.10.0040.00417.45
8.1.00.0050.00317.30
8.0.300.0080.00018.77
8.0.290.0040.00417.18
8.0.280.0000.00818.28
8.0.270.0030.00317.21
8.0.260.0040.00417.18
8.0.250.0040.00416.78
8.0.240.0000.00616.71
8.0.230.0000.00616.67
8.0.220.0030.00316.63
8.0.210.0070.00016.70
8.0.200.0000.00716.78
8.0.190.0040.00416.68
8.0.180.0060.00316.66
8.0.170.0000.00816.66
8.0.160.0000.00816.80
8.0.150.0000.00816.66
8.0.140.0070.00016.73
8.0.130.0080.00013.43
8.0.120.0050.00316.63
8.0.110.0000.00816.64
8.0.100.0030.00516.58
8.0.90.0040.00416.63
8.0.80.0090.00616.71
8.0.70.0000.00816.63
8.0.60.0000.00816.67
8.0.50.0070.00016.54
8.0.30.0090.00916.87
8.0.20.0100.00817.40
8.0.10.0000.00716.75
8.0.00.0110.00916.77
7.4.330.0000.00515.00
7.4.320.0030.00616.38
7.4.300.0000.00716.37
7.4.290.0040.00416.25
7.4.280.0070.00416.20
7.4.270.0000.00716.45
7.4.260.0070.00316.44
7.4.250.0030.00616.42
7.4.240.0000.00816.41
7.4.230.0040.00416.54
7.4.220.0160.00316.52
7.4.210.0100.00716.47
7.4.200.0070.00016.43
7.4.190.0070.00016.18
7.4.160.0030.01416.63
7.4.150.0130.00317.40
7.4.140.0050.01217.86
7.4.130.0120.00616.43
7.4.120.0070.01016.49
7.4.110.0030.01316.28
7.4.100.0140.00316.21
7.4.90.0160.00016.08
7.4.80.0150.00319.39
7.4.70.0130.00316.41
7.4.60.0130.00716.53
7.4.50.0000.00416.20
7.4.40.0060.00916.26
7.4.30.0100.01016.43
7.3.330.0000.00513.20
7.3.320.0000.00713.09
7.3.310.0000.00716.20
7.3.300.0030.00316.18
7.3.290.0060.01516.14
7.3.280.0120.00816.13
7.3.270.0060.01217.40
7.3.260.0130.01016.28
7.3.250.0030.01316.26
7.3.240.0160.00016.20
7.3.230.0100.00616.39
7.3.210.0030.01616.14
7.3.200.0120.00419.39
7.3.190.0060.01616.28
7.3.180.0060.01616.15
7.3.170.0100.01316.36
7.3.160.0090.00616.15
7.2.330.0200.00316.44
7.2.320.0060.01216.47
7.2.310.0090.00616.30
7.2.300.0120.00316.50
7.2.290.0070.01016.52
5.4.300.2700.04018.84
5.4.290.2930.04019.31
5.4.280.2730.05018.98
5.4.270.2800.03319.21
5.4.260.2830.03319.06
5.4.250.2500.03318.95
5.4.240.2470.03719.16
5.4.230.2730.03319.21
5.4.220.2670.04319.16
5.4.210.2770.04319.14
5.4.200.2700.04318.97
5.4.190.2770.03719.30
5.4.180.2770.03719.14
5.4.170.2730.03319.30
5.4.160.2770.03719.20
5.4.150.2770.03719.07
5.4.140.2700.03716.34
5.4.130.2700.04016.33
5.4.120.2900.04716.41
5.4.110.2730.04316.46
5.4.100.2770.03716.37
5.4.90.2830.04716.28
5.4.80.2800.03016.54
5.4.70.2530.03016.37
5.4.60.2770.03716.38
5.4.50.2430.03716.42
5.4.40.2730.04016.54
5.4.30.2800.03016.52
5.4.20.2470.04016.51
5.4.10.2670.04016.50
5.4.00.2870.03315.94
5.3.290.3270.04314.52
5.3.280.2630.04314.52
5.3.270.3230.04014.64
5.3.260.2830.03314.55
5.3.250.2900.03314.54
5.3.240.2630.03314.46
5.3.230.2600.04014.45
5.3.220.2400.04014.51
5.3.210.0230.03314.40
5.3.200.0170.03714.39
5.3.190.0200.03714.50
5.3.180.0170.04714.40
5.3.170.0170.03714.44
5.3.160.0230.03314.54
5.3.150.0170.04714.50
5.3.140.0130.04014.64
5.3.130.0100.04314.42
5.3.120.0170.04714.37
5.3.110.0200.03714.55
5.3.100.0230.03313.88
5.3.90.0200.03713.85
5.3.80.0170.03713.86
5.3.70.0130.03713.86
5.3.60.0230.03013.95
5.3.50.0170.03314.03
5.3.40.0270.02713.92
5.3.30.0270.02713.81
5.3.20.0170.03313.53
5.3.10.0170.03713.48
5.3.00.0070.04713.47

preferences:
35.01 ms | 401 KiB | 5 Q