3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class TestingMethods { public int 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.60.0040.01116.38
8.3.50.0070.00722.76
8.3.40.0160.00018.61
8.3.30.0140.00719.14
8.3.20.0040.00420.04
8.3.10.0080.00023.33
8.3.00.0080.00017.46
8.2.180.0180.00316.32
8.2.170.0070.00722.96
8.2.160.0070.01320.22
8.2.150.0070.00024.18
8.2.140.0090.00624.66
8.2.130.0070.00026.16
8.2.120.0080.00021.02
8.2.110.0060.00322.26
8.2.100.0120.00017.91
8.2.90.0000.00719.22
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0080.00017.80
8.2.50.0000.00918.07
8.2.40.0030.00519.95
8.2.30.0040.00517.86
8.2.20.0090.00017.56
8.2.10.0040.00417.90
8.2.00.0000.00817.66
8.1.280.0050.00825.92
8.1.270.0090.00023.79
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.96
8.1.230.0080.00419.16
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0080.00417.23
8.1.190.0060.00317.23
8.1.180.0030.00518.10
8.1.170.0040.00418.65
8.1.160.0040.00422.00
8.1.150.0000.00818.66
8.1.140.0040.00417.23
8.1.130.0000.00717.70
8.1.120.0000.00817.29
8.1.110.0040.00417.20
8.1.100.0030.00317.32
8.1.90.0070.00317.23
8.1.80.0020.00517.28
8.1.70.0030.00317.34
8.1.60.0040.00417.30
8.1.50.0050.00317.31
8.1.40.0040.00417.37
8.1.30.0040.00417.52
8.1.20.0070.00017.41
8.1.10.0000.00717.38
8.1.00.0000.00717.43
8.0.300.0050.00218.77
8.0.290.0070.00016.75
8.0.280.0030.00318.37
8.0.270.0030.00317.19
8.0.260.0000.00617.09
8.0.250.0000.00716.83
8.0.240.0070.00016.81
8.0.230.0040.00416.70
8.0.220.0050.00316.73
8.0.210.0040.00416.73
8.0.200.0000.00616.80
8.0.190.0040.00416.81
8.0.180.0030.00516.71
8.0.170.0040.00416.79
8.0.160.0080.00016.73
8.0.150.0070.00016.63
8.0.140.0040.00416.73
8.0.130.0050.00013.30
8.0.120.0000.00816.62
8.0.110.0020.00516.76
8.0.100.0040.00416.87
8.0.90.0040.00416.62
8.0.80.0090.00616.64
8.0.70.0040.00416.65
8.0.60.0040.00416.79
8.0.50.0000.00716.66
8.0.30.0140.01017.00
8.0.20.0070.01317.40
8.0.10.0000.00816.89
8.0.00.0100.00916.72
7.4.330.0000.00515.15
7.4.320.0040.00316.51
7.4.300.0030.00316.49
7.4.290.0040.00416.39
7.4.280.0030.00316.47
7.4.270.0000.00816.35
7.4.260.0000.00816.26
7.4.250.0070.00016.33
7.4.240.0050.00216.42
7.4.230.0070.00016.42
7.4.220.0060.01516.40
7.4.210.0090.00616.45
7.4.200.0000.00716.50
7.4.160.0030.01316.48
7.4.150.0100.01017.40
7.4.140.0090.00917.86
7.4.130.0120.00616.34
7.4.120.0130.00616.53
7.4.110.0080.00816.21
7.4.100.0100.00716.50
7.4.90.0140.00316.43
7.4.80.0120.00919.39
7.4.70.0160.00616.43
7.4.60.0000.01616.38
7.4.50.0050.00016.54
7.4.40.0000.02216.21
7.4.30.0070.01016.34
7.3.330.0060.00013.08
7.3.320.0000.00513.20
7.3.310.0070.00016.23
7.3.300.0000.00716.12
7.3.290.0070.00716.13
7.3.280.0070.01116.20
7.3.270.0150.00717.40
7.3.260.0060.01316.51
7.3.250.0140.00316.26
7.3.240.0090.00616.11
7.3.230.0120.00816.39
7.3.210.0060.01216.36
7.3.200.0120.00616.36
7.3.190.0040.01716.31
7.3.180.0080.01316.31
7.3.170.0130.00616.27
7.3.160.0070.01016.17
7.2.330.0130.00616.34
7.2.320.0140.00416.38
7.2.310.0100.00716.20
7.2.300.0090.00916.32
7.2.290.0070.01116.35
5.4.320.0070.03412.45
5.4.310.0070.03612.45
5.4.300.0050.03612.45
5.4.290.0060.03612.45
5.4.280.0040.03512.35
5.4.270.0040.03612.35
5.4.260.0080.04312.34
5.4.250.0100.04512.35
5.4.240.0080.04412.35
5.4.230.0070.05712.34
5.4.220.0060.03812.34
5.4.210.0070.03412.34
5.4.200.0110.03112.34
5.4.190.0040.03712.33
5.4.180.0070.03412.33
5.4.170.0060.03712.35
5.4.160.0050.04112.34
5.4.150.0080.05112.34
5.4.140.0050.03912.02
5.4.130.0050.04212.01
5.4.120.0050.03511.96
5.4.110.0050.03711.96
5.4.100.0080.03211.96
5.4.90.0080.04411.96
5.4.80.0070.03511.96
5.4.70.0070.03411.96
5.4.60.0040.03611.96
5.4.50.0040.03711.96
5.4.40.0040.03611.95
5.4.30.0060.03911.95
5.4.20.0060.04211.95
5.4.10.0100.03411.95
5.4.00.0060.03711.43

preferences:
32.96 ms | 401 KiB | 5 Q