3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class TestingMethods { // can't do public int get() public function get() { return (int) 1; } public function get($withParams) { return (int) 2; } public function getSomething(String $something) { return "something $something"; } public function getSomething() { return "something do with with no @params"; } } $t = new TestingMethods(); $one = $t->get(); $two = $t->get($withParams); $something = $t->getSomething("something..."); $something2 = $t->getSomething(); var_dump($one); var_dump($two); var_dump($something); var_dump($something2);

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.0120.00616.63
8.3.60.0110.01116.38
8.3.50.0110.00822.76
8.3.40.0090.00618.62
8.3.30.0200.00018.79
8.3.20.0000.00720.11
8.3.10.0040.00423.62
8.3.00.0060.00317.50
8.2.180.0150.00618.04
8.2.170.0000.01522.96
8.2.160.0150.00620.39
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00021.02
8.2.110.0090.00022.22
8.2.100.0070.00418.09
8.2.90.0050.00319.05
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0030.00517.68
8.2.50.0050.00318.07
8.2.40.0040.00419.79
8.2.30.0030.00717.93
8.2.20.0000.00717.61
8.2.10.0040.00417.98
8.2.00.0000.00717.49
8.1.280.0120.00925.92
8.1.270.0150.00023.96
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.97
8.1.230.0090.00318.95
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0000.01017.22
8.1.190.0000.00817.10
8.1.180.0060.00318.10
8.1.170.0040.00418.58
8.1.160.0000.00722.04
8.1.150.0040.00418.70
8.1.140.0000.00717.22
8.1.130.0030.00317.81
8.1.120.0030.00517.30
8.1.110.0040.00417.32
8.1.100.0030.00317.28
8.1.90.0060.00317.20
8.1.80.0050.00217.31
8.1.70.0000.00717.25
8.1.60.0000.00817.38
8.1.50.0000.00817.44
8.1.40.0070.00017.41
8.1.30.0040.00417.50
8.1.20.0040.00417.47
8.1.10.0040.00417.43
8.1.00.0040.00417.23
8.0.300.0090.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.25
8.0.270.0040.00417.09
8.0.260.0000.00617.18
8.0.250.0070.00016.75
8.0.240.0000.00816.69
8.0.230.0030.00316.83
8.0.220.0030.00316.75
8.0.210.0000.00716.64
8.0.200.0000.00616.86
8.0.190.0030.00316.81
8.0.180.0000.00716.75
8.0.170.0030.00516.81
8.0.160.0000.00716.68
8.0.150.0000.00816.71
8.0.140.0030.00516.75
8.0.130.0060.00013.44
8.0.120.0000.00816.71
8.0.110.0040.00416.77
8.0.100.0040.00416.65
8.0.90.0070.00016.77
8.0.80.0060.00916.82
8.0.70.0000.00816.65
8.0.60.0000.00716.58
8.0.50.0070.00016.80
8.0.30.0080.01516.91
8.0.20.0100.00917.40
8.0.10.0000.00716.66
8.0.00.0080.01116.53
7.4.330.0030.00315.00
7.4.320.0000.00616.36
7.4.300.0000.00616.46
7.4.290.0070.00016.36
7.4.280.0030.00316.26
7.4.270.0050.00216.46
7.4.260.0030.00316.45
7.4.250.0080.00016.49
7.4.240.0030.00316.43
7.4.230.0030.00316.54
7.4.220.0090.01216.31
7.4.210.0100.00716.43
7.4.200.0040.00416.53
7.4.160.0070.00716.39
7.4.150.0060.01217.40
7.4.140.0110.00617.86
7.4.130.0070.01116.26
7.4.120.0150.00316.33
7.4.110.0130.00416.33
7.4.100.0040.01216.26
7.4.90.0040.01216.48
7.4.80.0080.00819.39
7.4.70.0140.00716.45
7.4.60.0030.01216.38
7.4.50.0000.00516.09
7.4.40.0090.00916.24
7.4.30.0070.01416.42
7.3.330.0000.00613.23
7.3.320.0030.00313.03
7.3.310.0070.00016.21
7.3.300.0030.00316.06
7.3.290.0120.00316.16
7.3.280.0060.01216.20
7.3.270.0060.01317.40
7.3.260.0100.00716.20
7.3.250.0060.01016.37
7.3.240.0100.00616.50
7.3.230.0160.00016.50
7.3.210.0090.00616.02
7.3.200.0030.01319.39
7.3.190.0090.01216.22
7.3.180.0140.00916.49
7.3.170.0110.00716.27
7.3.160.0170.00016.45
7.2.330.0060.01216.29
7.2.320.0080.00816.44
7.2.310.0090.01216.55
7.2.300.0110.01116.47
7.2.290.0130.00316.63
5.4.320.1870.03719.07
5.4.310.1370.03319.17
5.4.300.1270.03719.05
5.4.290.1470.03719.17
5.4.280.1770.03319.21
5.4.270.1330.03319.07
5.4.260.1870.04319.00
5.4.250.1630.02318.76
5.4.240.0670.03719.30
5.4.230.0170.03319.30
5.4.220.0030.03718.85
5.4.210.1100.03319.02
5.4.200.1470.03319.21
5.4.190.1300.03718.88
5.4.180.1400.03718.98
5.4.170.1800.04018.85
5.4.160.1570.03018.95
5.4.150.1500.03719.19
5.4.140.1800.03716.40
5.4.130.1770.04316.51
5.4.120.1730.04016.51
5.4.110.1730.04016.37
5.4.100.1770.04016.35
5.4.90.0570.04016.45
5.4.80.0070.03016.43
5.4.70.0100.06316.52
5.4.60.0530.06316.54
5.4.50.1730.04316.33
5.4.40.1800.04016.17
5.4.30.1570.03316.21
5.4.20.1570.03716.37
5.4.10.1870.03016.26
5.4.00.1500.04015.78

preferences:
44.12 ms | 401 KiB | 5 Q