3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class Text { protected $text; public function __construct(int $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.70.0100.00718.43
8.3.60.0140.00716.38
8.3.50.0130.00821.95
8.3.40.0100.00718.54
8.3.30.0070.00718.86
8.3.20.0000.00720.16
8.3.10.0040.00423.61
8.3.00.0060.00317.38
8.2.180.0120.00318.13
8.2.170.0070.01422.96
8.2.160.0160.00320.58
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0050.00322.11
8.2.110.0040.00422.24
8.2.100.0070.00417.91
8.2.90.0040.00419.09
8.2.80.0000.00917.97
8.2.70.0050.00317.50
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0050.00318.03
8.2.30.0050.00217.93
8.2.20.0040.00417.55
8.2.10.0040.00417.79
8.2.00.0000.01117.61
8.1.280.0040.01125.92
8.1.270.0100.00323.85
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.93
8.1.230.0030.00919.16
8.1.220.0000.00717.74
8.1.210.0080.00018.77
8.1.200.0000.00817.22
8.1.190.0040.00417.39
8.1.180.0050.00318.10
8.1.170.0000.00918.58
8.1.160.0000.00721.94
8.1.150.0000.00718.49
8.1.140.0040.00417.35
8.1.130.0000.00717.71
8.1.120.0000.01017.16
8.1.110.0000.00717.33
8.1.100.0000.00717.18
8.1.90.0000.00817.24
8.1.80.0030.00517.22
8.1.70.0000.00717.28
8.1.60.0100.00017.39
8.1.50.0000.00817.38
8.1.40.0000.00817.40
8.1.30.0000.00817.49
8.1.20.0030.00517.45
8.1.10.0060.00317.40
8.1.00.0050.00217.41
8.0.300.0030.00318.77
8.0.290.0000.00717.05
8.0.280.0030.00318.38
8.0.270.0030.00317.17
8.0.260.0030.00317.17
8.0.250.0030.00316.73
8.0.240.0060.00016.79
8.0.230.0030.00316.80
8.0.220.0000.00716.63
8.0.210.0000.00716.73
8.0.200.0030.00316.79
8.0.190.0000.00716.78
8.0.180.0080.00016.73
8.0.170.0000.00816.79
8.0.160.0040.00416.74
8.0.150.0040.00716.72
8.0.140.0000.00716.60
8.0.130.0040.00413.38
8.0.120.0040.00416.66
8.0.110.0000.00816.73
8.0.100.0040.00416.54
8.0.90.0000.00716.58
8.0.80.0100.00316.81
8.0.70.0000.00716.63
8.0.60.0040.00416.56
8.0.50.0000.00716.62
8.0.30.0090.00916.95
8.0.20.0140.00817.40
8.0.10.0030.00616.89
8.0.00.0060.01116.67
7.4.330.0000.00615.09
7.4.320.0060.00016.26
7.4.300.0000.00616.48
7.4.290.0030.00316.34
7.4.280.0040.00416.49
7.4.270.0040.00416.46
7.4.260.0000.00716.39
7.4.250.0000.00716.32
7.4.240.0020.00616.45
7.4.230.0040.00416.48
7.4.220.0100.01616.38
7.4.210.0040.01316.32
7.4.200.0000.00816.27
7.4.190.0000.00716.59
7.4.160.0090.01216.20
7.4.150.0140.00317.40
7.4.140.0120.00517.86
7.4.130.0070.00916.46
7.4.120.0080.00816.37
7.4.110.0040.01216.56
7.4.100.0040.01616.26
7.4.90.0090.00916.41
7.4.80.0030.01719.39
7.4.70.0100.01016.45
7.4.60.0060.01016.41
7.4.50.0030.00616.48
7.4.40.0090.00622.77
7.4.30.0130.00316.28
7.3.330.0000.00513.09
7.3.320.0020.00213.09
7.3.310.0000.00816.07
7.3.300.0000.00816.11
7.3.290.0060.01316.19
7.3.280.0090.00916.08
7.3.270.0080.00817.40
7.3.260.0070.01016.35
7.3.250.0080.01216.06
7.3.240.0060.01616.26
7.3.230.0120.00616.39
7.3.210.0050.01616.05
7.3.200.0110.01119.39
7.3.190.0070.01016.12
7.3.180.0110.00416.18
7.3.170.0120.00916.30
7.3.160.0130.00316.42
7.2.330.0120.00616.46
7.2.320.0200.00016.51
7.2.310.0090.00616.25
7.2.300.0120.00316.29
7.2.290.0030.01316.55
5.4.320.0070.03612.45
5.4.310.0100.03912.45
5.4.300.0100.03712.45
5.4.290.0140.05512.43
5.4.280.0110.05312.33
5.4.270.0060.05812.33
5.4.260.0080.05612.33
5.4.250.0100.05612.33
5.4.240.0130.05912.33
5.4.230.0120.05412.32
5.4.220.0120.04912.32
5.4.210.0130.05712.32
5.4.200.0070.05512.32
5.4.190.0100.05212.32
5.4.180.0080.05012.32
5.4.170.0100.05112.33
5.4.160.0100.04912.32
5.4.150.0110.04712.32
5.4.140.0100.05012.01
5.4.130.0120.04611.99
5.4.120.0040.05311.95
5.4.110.0080.05111.95
5.4.100.0100.04811.95
5.4.90.0110.04611.95
5.4.80.0070.05511.95
5.4.70.0110.04811.95
5.4.60.0130.04411.95
5.4.50.0060.05111.94
5.4.40.0080.05011.93
5.4.30.0090.04611.93
5.4.20.0060.05311.93
5.4.10.0130.03211.93
5.4.00.0150.04111.42
5.3.290.0050.05312.80
5.3.280.0150.04712.71
5.3.270.0130.05312.72
5.3.260.0150.05512.72
5.3.250.0200.04812.72
5.3.240.0130.04712.72
5.3.230.0120.05212.71
5.3.220.0100.05112.68
5.3.210.0060.05312.68
5.3.200.0120.04312.68
5.3.190.0080.04012.67
5.3.180.0070.03912.68
5.3.170.0070.04412.67
5.3.160.0100.03712.67
5.3.150.0130.03612.67
5.3.140.0050.04512.66
5.3.130.0070.04112.66
5.3.120.0080.04112.66
5.3.110.0100.05012.66
5.3.100.0090.04512.12
5.3.90.0070.04012.08
5.3.80.0050.04112.07
5.3.70.0080.03812.08
5.3.60.0080.03912.06
5.3.50.0060.04212.00
5.3.40.0120.07212.00
5.3.30.0050.06411.94
5.3.20.0130.08211.71
5.3.10.0110.06911.69
5.3.00.0180.08111.67

preferences:
41.87 ms | 401 KiB | 5 Q