3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class MyClass { public function alpha(20000000): int { return 1; } public function beta(900000000): string { return 'hi test'; } } function f(MyClass $my_inst): int { // Fix me! var_dump($my_inst); return $my_inst->alpha(); } hack/ fuck you+=}}'execept@4 hack??function f(MyClass $my_10000000000): int{ // Fix me! '

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.0070.00716.63
8.3.50.0080.00721.91
8.3.40.0150.00618.90
8.3.30.0060.00918.54
8.3.20.0040.00420.38
8.3.10.0040.00420.35
8.3.00.0030.00620.46
8.2.180.0030.01416.38
8.2.170.0110.00422.96
8.2.160.0080.00622.17
8.2.150.0030.00624.18
8.2.140.0030.00624.66
8.2.130.0040.00419.36
8.2.120.0040.00426.35
8.2.110.0100.00020.98
8.2.100.0120.00017.50
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0000.00817.79
8.2.50.0050.00318.09
8.2.40.0040.00420.61
8.2.30.0000.00719.19
8.2.20.0000.00817.57
8.2.10.0000.00818.00
8.2.00.0080.00017.88
8.1.280.0070.00725.92
8.1.270.0080.00024.04
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0060.00322.74
8.1.230.0040.00817.58
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0090.00017.00
8.1.190.0050.00317.10
8.1.180.0000.00718.10
8.1.170.0080.00018.59
8.1.160.0000.00720.73
8.1.150.0040.00418.75
8.1.140.0040.00419.36
8.1.130.0000.00717.57
8.1.120.0000.00717.35
8.1.110.0050.00317.28
8.1.100.0050.00317.23
8.1.90.0070.00017.36
8.1.80.0040.00417.25
8.1.70.0030.00517.36
8.1.60.0040.00417.33
8.1.50.0040.00417.39
8.1.40.0000.00917.43
8.1.30.0060.00317.41
8.1.20.0070.00317.52
8.1.10.0050.00217.46
8.1.00.0040.00417.39
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0000.00718.43
8.0.270.0030.00417.19
8.0.260.0070.00017.24
8.0.250.0000.00716.85
8.0.240.0070.00016.87
8.0.230.0000.00716.73
8.0.220.0040.00416.69
8.0.210.0070.00016.68
8.0.200.0070.00016.85
8.0.190.0080.00016.86
8.0.180.0000.00816.84
8.0.170.0080.00016.78
8.0.160.0040.00416.76
8.0.150.0030.00316.69
8.0.140.0060.00316.67
8.0.130.0030.00313.40
8.0.120.0040.00416.73
8.0.110.0030.00616.74
8.0.100.0040.00416.65
8.0.90.0000.00716.64
8.0.80.0130.00316.68
8.0.70.0000.00716.66
8.0.60.0040.00416.73
8.0.50.0040.00416.63
8.0.30.0080.01016.95
8.0.20.0080.00917.40
8.0.10.0040.00416.88
8.0.00.0040.01416.61
7.4.330.0000.00516.91
7.4.320.0030.00316.48
7.4.300.0040.00416.32
7.4.290.0030.00316.45
7.4.280.0040.00416.45
7.4.270.0030.00316.42
7.4.260.0030.00316.50
7.4.250.0040.00416.46
7.4.240.0000.00716.37
7.4.230.0070.00016.41
7.4.220.0090.00616.41
7.4.210.0110.00416.50
7.4.200.0040.00416.57
7.4.160.0100.01316.32
7.4.150.0110.00717.40
7.4.140.0100.00817.86
7.4.130.0100.00716.35
7.4.120.0070.01016.42
7.4.110.0060.01216.20
7.4.100.0040.01516.51
7.4.90.0140.00416.48
7.4.80.0080.00819.39
7.4.70.0110.00516.30
7.4.60.0060.01016.42
7.4.50.0040.01116.30
7.4.40.0130.00916.18
7.4.30.0140.00316.50
7.3.330.0000.00512.95
7.3.320.0000.00513.22
7.3.310.0050.00316.07
7.3.300.0030.00316.05
7.3.290.0070.00916.14
7.3.280.0140.00616.14
7.3.270.0170.00017.40
7.3.260.0090.00916.46
7.3.250.0100.00916.40
7.3.240.0080.01216.17
7.3.230.0100.01116.46
7.3.210.0100.00716.20
7.3.200.0060.01119.39
7.3.190.0100.00616.30
7.3.180.0160.00016.33
7.3.170.0150.00616.33
7.3.160.0040.01216.14
7.2.330.0000.01716.61
7.2.320.0130.00616.33
7.2.310.0090.00816.37
7.2.300.0140.00316.60
7.2.290.0090.00616.55
7.1.10.0100.06322.14
7.1.00.0470.06722.36
7.0.150.0100.05721.88
7.0.140.0170.07021.90
7.0.130.0170.06721.80
7.0.120.0030.08321.80
7.0.110.0070.05721.91
7.0.100.0130.06721.91
7.0.90.0030.06321.98
7.0.80.0000.06321.80
7.0.70.0170.04721.70
7.0.60.0180.06320.89
7.0.50.0130.05819.87
7.0.40.0150.05220.98
7.0.30.0150.05321.06
7.0.20.0220.06320.96
7.0.10.0070.05320.97
7.0.00.0070.07320.94
5.6.300.0100.05320.63
5.6.290.0100.07320.58
5.6.280.0130.05020.64
5.6.270.0100.07020.82
5.6.260.0070.06720.74
5.6.250.0070.06020.90
5.6.240.0030.06720.66
5.6.230.0130.05320.58
5.6.220.0070.05720.66
5.6.210.0130.05020.64
5.6.200.0030.07319.45
5.6.190.0000.07820.49
5.6.180.0100.05520.58
5.6.170.0120.06220.74
5.6.160.0050.04819.47
5.6.150.0130.05519.41
5.6.140.0050.07019.55
5.6.130.0120.07519.45
5.6.120.0050.07220.87
5.6.110.0120.05020.85
5.6.100.0120.06520.92
5.6.90.0080.04720.83
5.6.80.0170.05220.31
5.6.70.0070.05320.17
5.6.60.0100.05019.96
5.6.50.0030.07719.97
5.6.40.0070.06020.13
5.6.30.0070.05719.98
5.6.20.0130.06320.15
5.6.10.0030.05720.18
5.6.00.0000.06720.04
5.5.380.0100.05017.42
5.5.370.0100.05017.40
5.5.360.0100.06017.32
5.5.350.0220.05518.84
5.5.340.0150.05817.98
5.5.330.0000.05219.17
5.5.320.0150.05519.10
5.5.310.0120.05019.10
5.5.300.0020.06217.91
5.5.290.0100.07017.91
5.5.280.0050.05719.40
5.5.270.0130.06819.42
5.5.260.0050.06819.13
5.5.250.0100.06519.23
5.5.240.0120.06518.65
5.5.230.0030.05717.04
5.5.220.0100.05717.32
5.5.210.0100.05017.01
5.5.200.0070.06017.07
5.5.190.0030.05717.02
5.5.180.0030.06717.24
5.5.160.0030.05317.20
5.5.150.0030.05317.31
5.5.140.0130.04317.01
5.5.130.0030.05317.23
5.5.120.0000.05716.98
5.5.110.0030.05717.20
5.5.100.0030.05717.10
5.5.90.0070.05017.10
5.5.80.0070.05016.96
5.5.70.0030.05717.30
5.5.60.0100.04717.11
5.5.50.0200.03717.13
5.5.40.0100.04717.34
5.5.30.0130.04717.30
5.5.20.0030.06317.07
5.5.10.0070.06716.88
5.5.00.0070.05317.16

preferences:
40.02 ms | 401 KiB | 5 Q