3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class Text { protected $text; public function __construct($text) { $this->text = $text; } public function hello() : bool { return $this->text; } } var_dump((new Text(1))->hello());

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.0130.00716.50
8.3.50.0070.01221.98
8.3.40.0100.00318.63
8.3.30.0100.00319.00
8.3.20.0000.00720.09
8.3.10.0040.00423.48
8.3.00.0070.00317.25
8.2.180.0040.01518.04
8.2.170.0110.00322.96
8.2.160.0040.01120.15
8.2.150.0040.00424.18
8.2.140.0020.00524.66
8.2.130.0110.00426.16
8.2.120.0100.00322.11
8.2.110.0040.00422.11
8.2.100.0090.00317.91
8.2.90.0000.00819.09
8.2.80.0000.00817.97
8.2.70.0000.00817.25
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0040.00417.80
8.2.20.0000.00717.59
8.2.10.0000.00717.91
8.2.00.0070.00017.52
8.1.280.0110.00725.92
8.1.270.0080.00023.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.01023.74
8.1.230.0070.00418.98
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.27
8.1.180.0080.00018.10
8.1.170.0040.00418.49
8.1.160.0000.00721.81
8.1.150.0030.00518.41
8.1.140.0040.00417.30
8.1.130.0000.00617.70
8.1.120.0050.00317.33
8.1.110.0070.00017.14
8.1.100.0000.00817.25
8.1.90.0040.00417.30
8.1.80.0000.00717.34
8.1.70.0000.00617.25
8.1.60.0080.00317.33
8.1.50.0050.00317.37
8.1.40.0000.00817.34
8.1.30.0040.00417.48
8.1.20.0040.00417.50
8.1.10.0070.00017.41
8.1.00.0080.00017.41
8.0.300.0000.00718.77
8.0.290.0000.00717.05
8.0.280.0030.00318.42
8.0.270.0070.00017.09
8.0.260.0060.00017.16
8.0.250.0070.00016.79
8.0.240.0030.00316.80
8.0.230.0000.00716.70
8.0.220.0020.00516.71
8.0.210.0000.00716.63
8.0.200.0030.00316.67
8.0.190.0030.00316.84
8.0.180.0000.00816.77
8.0.170.0080.00016.75
8.0.160.0040.00416.64
8.0.150.0030.00316.59
8.0.140.0070.00016.74
8.0.130.0000.00513.45
8.0.120.0000.00816.67
8.0.110.0020.00516.76
8.0.100.0030.00316.84
8.0.90.0030.00516.69
8.0.80.0080.00616.73
8.0.70.0040.00416.82
8.0.60.0000.00816.66
8.0.50.0080.00016.55
8.0.30.0130.00816.80
8.0.20.0110.00717.40
8.0.10.0040.00416.75
8.0.00.0060.01116.53
7.4.330.0050.00015.13
7.4.320.0000.00616.32
7.4.300.0000.00616.27
7.4.290.0000.00616.38
7.4.280.0070.00016.49
7.4.270.0070.00016.39
7.4.260.0030.00313.14
7.4.250.0000.00716.38
7.4.240.0040.00316.36
7.4.230.0070.00016.26
7.4.220.0150.00816.35
7.4.210.0060.00916.46
7.4.200.0070.00016.48
7.4.190.0000.00716.34
7.4.160.0120.01216.24
7.4.150.0070.01017.40
7.4.140.0110.00617.86
7.4.130.0130.00316.45
7.4.120.0090.00816.35
7.4.110.0090.00916.35
7.4.100.0060.01116.48
7.4.90.0140.00716.26
7.4.80.0130.00919.39
7.4.70.0060.00916.29
7.4.60.0100.00616.40
7.4.50.0040.00416.36
7.4.40.0090.00622.77
7.4.30.0070.01016.18
7.3.330.0050.00013.10
7.3.320.0050.00013.20
7.3.310.0080.00016.00
7.3.300.0030.00316.04
7.3.290.0090.00416.16
7.3.280.0090.01016.14
7.3.270.0130.00317.40
7.3.260.0030.01316.23
7.3.250.0070.01216.29
7.3.240.0140.00716.36
7.3.230.0040.01716.39
7.3.210.0030.01716.13
7.3.200.0110.00919.39
7.3.190.0120.00416.36
7.3.180.0130.00416.34
7.3.170.0120.00916.27
7.3.160.0100.00616.13
7.2.330.0090.01216.53
7.2.320.0070.01416.36
7.2.310.0040.01216.59
7.2.300.0120.00616.36
7.2.290.0060.01116.34
5.4.320.0080.03912.45
5.4.310.0070.04012.45
5.4.300.0040.03812.45
5.4.290.0120.06512.43
5.4.280.0100.05812.33
5.4.270.0100.06112.33
5.4.260.0150.07212.33
5.4.250.0180.06612.33
5.4.240.0160.05012.33
5.4.230.0050.05812.32
5.4.220.0090.04912.32
5.4.210.0130.05312.32
5.4.200.0120.04912.32
5.4.190.0120.04812.32
5.4.180.0120.05712.32
5.4.170.0080.05912.33
5.4.160.0100.04712.32
5.4.150.0100.04512.32
5.4.140.0140.04612.00
5.4.130.0090.04011.99
5.4.120.0130.07311.95
5.4.110.0100.04211.95
5.4.100.0090.04511.95
5.4.90.0130.04811.95
5.4.80.0210.04911.95
5.4.70.0100.04911.94
5.4.60.0090.05311.95
5.4.50.0100.04611.94
5.4.40.0090.04211.93
5.4.30.0090.04611.93
5.4.20.0090.05311.93
5.4.10.0120.05711.93
5.4.00.0140.05011.42
5.3.290.0110.03912.80
5.3.280.0100.04512.71
5.3.270.0090.06812.72
5.3.260.0090.04612.72
5.3.250.0140.04312.72
5.3.240.0070.04912.72
5.3.230.0100.04312.71
5.3.220.0100.04912.68
5.3.210.0080.04712.68
5.3.200.0080.06612.68
5.3.190.0130.04412.68
5.3.180.0090.04512.67
5.3.170.0090.04412.67
5.3.160.0160.04912.67
5.3.150.0100.06412.67
5.3.140.0070.04712.66
5.3.130.0060.05012.66
5.3.120.0080.03812.66
5.3.110.0090.03812.66
5.3.100.0080.03912.12
5.3.90.0060.03912.08
5.3.80.0100.03812.08
5.3.70.0070.04312.07
5.3.60.0070.03812.07
5.3.50.0090.04112.00
5.3.40.0100.04312.00
5.3.30.0100.03911.94
5.3.20.0090.04011.71
5.3.10.0080.04611.69
5.3.00.0080.04711.67

preferences:
33.61 ms | 401 KiB | 5 Q