3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a(): int { return 1.0001; } function b($c): int { if (!is_int($c)) { throw new \Exception('not an int'); } return $c * 5; } var_dump(a(), b(a()));

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.5.20.0100.00820.23
8.5.10.0110.00920.05
8.5.00.0120.01120.02
8.4.170.0130.00823.51
8.4.160.0140.00823.81
8.4.150.0030.00014.05
8.4.140.0140.00917.54
8.4.130.0110.00917.80
8.4.120.0080.01020.54
8.4.110.0100.00622.24
8.4.100.0140.00617.67
8.4.90.0100.01018.56
8.4.80.0040.00417.70
8.4.70.0070.00517.85
8.4.60.0140.00718.66
8.4.50.0050.00519.64
8.4.40.0130.00722.40
8.4.30.0150.00318.55
8.4.20.0130.00720.56
8.4.10.0090.00023.96
8.3.300.0110.00820.89
8.3.290.0150.00718.49
8.3.280.0030.00014.05
8.3.270.0070.01216.73
8.3.260.0040.00416.67
8.3.250.0070.00518.85
8.3.240.0100.00916.58
8.3.230.0120.00516.59
8.3.220.0100.00917.25
8.3.210.0120.00616.94
8.3.200.0020.00616.68
8.3.190.0030.00517.00
8.3.180.0080.00716.82
8.3.170.0100.00719.16
8.3.160.0090.00918.52
8.3.150.0150.00318.98
8.3.140.0060.00316.82
8.3.130.0060.00318.50
8.3.120.0030.00618.86
8.3.110.0040.00420.94
8.3.100.0130.00724.06
8.3.90.0040.00426.77
8.3.80.0100.00017.97
8.3.70.0040.01116.50
8.3.60.0070.01018.55
8.3.50.0000.02118.54
8.3.40.0130.00319.88
8.3.30.0040.01218.85
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0090.00026.16
8.2.300.0090.01218.08
8.2.290.0130.00620.18
8.2.280.0040.00418.28
8.2.270.0040.01418.72
8.2.260.0090.00619.00
8.2.250.0130.00616.49
8.2.240.0000.00917.15
8.2.230.0040.00422.58
8.2.220.0090.00337.54
8.2.210.0130.00326.77
8.2.200.0030.00616.50
8.2.190.0180.00316.58
8.2.180.0070.00716.50
8.2.170.0140.00019.01
8.2.160.0070.00722.96
8.2.150.0090.00025.66
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0070.00022.02
8.2.110.0030.00620.89
8.2.100.0040.00817.72
8.2.90.0080.00017.95
8.2.80.0030.00818.02
8.2.70.0050.00317.50
8.2.60.0040.00417.63
8.2.50.0140.00519.49
8.2.40.0170.00019.49
8.2.30.0090.00619.49
8.2.20.0120.00519.49
8.2.10.0170.00219.49
8.2.00.0160.00319.49
8.1.340.0120.00818.43
8.1.330.0080.01122.12
8.1.320.0150.00416.41
8.1.310.0080.01216.56
8.1.300.0140.00716.21
8.1.290.0000.00830.84
8.1.280.0070.01125.92
8.1.270.0050.00224.66
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0000.00922.43
8.1.230.0040.00920.95
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0030.00617.22
8.1.190.0040.00418.88
8.1.180.0130.00419.49
8.1.170.0100.00719.49
8.1.160.0130.00419.49
8.1.150.0140.00519.49
8.1.140.0070.01019.49
8.1.130.0180.00019.49
8.1.120.0070.01019.49
8.1.110.0050.01119.49
8.1.100.0100.00619.49
8.1.90.0100.00619.49
8.1.80.0120.00419.49
8.1.70.0080.00819.49
8.1.60.0060.01219.49
8.1.50.0130.00319.49
8.1.40.0140.00519.49
8.1.30.0220.00019.49
8.1.20.0150.00419.49
8.1.10.0130.00419.49
8.1.00.0140.00319.49
8.0.300.0000.00719.83
8.0.290.0030.00616.75
8.0.280.0100.00519.49
8.0.270.0170.00019.49
8.0.260.0080.00819.49
8.0.250.0100.00519.49
8.0.240.0140.00019.49
8.0.230.0060.01119.49
8.0.220.0100.00719.49
8.0.210.0160.00019.49
8.0.200.0110.00519.49
8.0.190.0180.00019.49
8.0.180.0140.00319.49
8.0.170.0170.00319.49
8.0.160.0130.00519.49
8.0.150.0130.00419.49
8.0.140.0110.00519.49
8.0.130.0110.00519.49
8.0.120.0080.00819.49
8.0.110.0140.00319.49
8.0.100.0140.00319.49
8.0.90.0130.00319.49
8.0.80.0100.00719.49
8.0.70.0160.00019.49
8.0.60.0130.00319.49
8.0.50.0100.00719.49
8.0.30.0130.00419.49
8.0.20.0090.00919.49
8.0.10.0170.00019.49

preferences:
29.24 ms | 403 KiB | 5 Q