3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class Text { protected int $text; public function __construct($text) { $this->text = $text; } public function hello() { return $this->text; } } var_dump((new Text('hello'))->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.40.0100.00718.58
8.3.30.0100.00318.79
8.3.20.0050.00220.04
8.3.10.0000.00723.70
8.3.00.0040.00717.59
8.2.170.0180.00422.96
8.2.160.0040.01120.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00422.11
8.2.110.0090.00022.11
8.2.100.0070.00417.78
8.2.90.0080.00019.17
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0050.00317.91
8.2.50.0080.00018.07
8.2.40.0080.00018.20
8.2.30.0000.00717.86
8.2.20.0000.00817.54
8.2.10.0040.00417.90
8.2.00.0030.00617.48
8.1.270.0090.00623.70
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0080.00023.79
8.1.230.0040.00718.97
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0080.00017.40
8.1.180.0000.00818.10
8.1.170.0060.00318.43
8.1.160.0030.00321.89
8.1.150.0000.00718.48
8.1.140.0100.00017.24
8.1.130.0030.00317.76
8.1.120.0040.00417.19
8.1.110.0050.00217.20
8.1.100.0030.00317.24
8.1.90.0040.00417.28
8.1.80.0000.00717.27
8.1.70.0030.00317.31
8.1.60.0060.00717.32
8.1.50.0040.00417.38
8.1.40.0040.00417.38
8.1.30.0040.00417.43
8.1.20.0000.00817.51
8.1.10.0040.00417.40
8.1.00.0040.00417.27
8.0.300.0030.00318.77
8.0.290.0000.00717.05
8.0.280.0030.00318.35
8.0.270.0030.00317.15
8.0.260.0000.00617.09
8.0.250.0030.00316.80
8.0.240.0030.00316.80
8.0.230.0070.00016.80
8.0.220.0000.00716.62
8.0.210.0070.00016.75
8.0.200.0070.00016.70
8.0.190.0040.00416.70
8.0.180.0030.00516.61
8.0.170.0050.00316.77
8.0.160.0000.00816.75
8.0.150.0030.00716.73
8.0.140.0000.00716.70
8.0.130.0050.00013.45
8.0.120.0040.00416.67
8.0.110.0000.00716.67
8.0.100.0050.00316.77
8.0.90.0040.00416.79
8.0.80.0110.00316.69
8.0.70.0070.00016.81
8.0.60.0000.00716.64
8.0.50.0040.00416.78
8.0.30.0120.01116.82
8.0.20.0180.00717.40
8.0.10.0040.00416.82
8.0.00.0070.01016.67
7.4.330.0020.00215.00
7.4.320.0030.00316.39
7.4.300.0000.00716.50
7.4.290.0000.00716.34
7.4.280.0060.00016.27
7.4.270.0000.00716.37
7.4.260.0000.00716.45
7.4.250.0070.00016.39
7.4.240.0020.00516.38
7.4.230.0040.00416.55
7.4.220.0180.00716.48
7.4.210.0030.01016.43
7.4.200.0000.00716.48
7.4.190.0000.00716.54
7.4.160.0120.00316.38
7.4.150.0090.00617.40
7.4.140.0100.00817.86
7.4.130.0090.00816.52
7.4.120.0090.00816.40
7.4.110.0130.00316.41
7.4.100.0080.00816.43
7.4.90.0100.00616.38
7.4.80.0130.00319.39
7.4.70.0100.01016.29
7.4.60.0030.01316.36
7.4.50.0040.00016.30
7.4.40.0040.00822.77
7.4.30.0080.00816.46
7.3.330.0000.00513.11
7.3.320.0020.00213.25
7.3.310.0040.00416.13
7.3.300.0030.00316.07
7.3.290.0030.01016.06
7.3.280.0060.00816.11
7.3.270.0070.01117.40
7.3.260.0060.01116.32
7.3.250.0130.00316.28
7.3.240.0100.00716.26
7.3.230.0130.01016.39
7.3.210.0100.00716.13
7.3.200.0160.00319.39
7.3.190.0090.01216.40
7.3.180.0040.01116.22
7.3.170.0070.00716.34
7.3.160.0100.00616.16
7.2.330.0040.01516.42
7.2.320.0110.00516.27
7.2.310.0080.00816.71
7.2.300.0140.00416.42
7.2.290.0130.00316.32
5.4.320.0060.04912.45
5.4.310.0070.04212.45
5.4.300.0070.03712.45
5.4.290.0190.06812.43
5.4.280.0090.05212.33
5.4.270.0120.04912.33
5.4.260.0130.06912.33
5.4.250.0070.04212.33
5.4.240.0110.03512.33
5.4.230.0060.04512.32
5.4.220.0080.04412.32
5.4.210.0080.03712.32
5.4.200.0050.04212.32
5.4.190.0080.03612.32
5.4.180.0100.03512.32
5.4.170.0060.03712.33
5.4.160.0070.04812.33
5.4.150.0130.04212.32
5.4.140.0180.06212.01
5.4.130.0210.04312.00
5.4.120.0090.04711.96
5.4.110.0120.06411.95
5.4.100.0110.09811.95
5.4.90.0100.05211.95
5.4.80.0060.04511.95
5.4.70.0100.04811.94
5.4.60.0090.03611.95
5.4.50.0070.05311.94
5.4.40.0070.05211.93
5.4.30.0110.05011.93
5.4.20.0100.03311.93
5.4.10.0110.04011.93
5.4.00.0100.03311.42
5.3.290.0060.03812.80
5.3.280.0090.03612.71
5.3.270.0060.04412.72
5.3.260.0150.05812.72
5.3.250.0090.04012.72
5.3.240.0090.04812.72
5.3.230.0110.05812.71
5.3.220.0120.08912.68
5.3.210.0120.06712.68
5.3.200.0120.06512.68
5.3.190.0150.06312.68
5.3.180.0110.05212.68
5.3.170.0090.04812.66
5.3.160.0260.08812.67
5.3.150.0100.04912.67
5.3.140.0090.04612.66
5.3.130.0130.04812.66
5.3.120.0100.04312.66
5.3.110.0130.04712.66
5.3.100.0130.06512.12
5.3.90.0070.04612.09
5.3.80.0140.05912.08
5.3.70.0100.04712.07
5.3.60.0080.05512.07
5.3.50.0080.04412.00
5.3.40.0080.05012.00
5.3.30.0070.03911.94
5.3.20.0070.04311.71
5.3.10.0090.03811.69
5.3.00.0100.03811.67

preferences:
38.85 ms | 400 KiB | 5 Q