3v4l.org

run code in 300+ PHP versions simultaneously
<?php function needInt(int $int): int { return $int + 1; } var_dump(needInt(1.0));

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.4.20.0140.00717.69
8.4.10.0050.00320.47
8.3.150.0140.00417.23
8.3.140.0070.00317.19
8.3.130.0120.00318.32
8.3.120.0160.00318.86
8.3.110.0090.00020.94
8.3.100.0000.00924.06
8.3.90.0080.00026.77
8.3.80.0050.00516.50
8.3.70.0070.01116.58
8.3.60.0070.01016.38
8.3.50.0100.00823.66
8.3.40.0070.00721.83
8.3.30.0130.00318.51
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0070.00026.16
8.2.260.0030.00616.44
8.2.250.0050.00316.32
8.2.240.0150.00318.79
8.2.230.0000.01022.58
8.2.220.0000.00837.54
8.2.210.0080.00026.77
8.2.200.0030.00716.50
8.2.190.0120.00916.58
8.2.180.0000.01425.92
8.2.170.0000.01418.96
8.2.160.0100.00322.96
8.2.150.0000.00825.66
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0080.00019.11
8.2.110.0060.00319.39
8.2.100.0040.00817.72
8.2.90.0050.00218.95
8.2.80.0000.00917.97
8.2.70.0060.00317.63
8.2.60.0060.00317.38
8.2.50.0080.00018.05
8.2.40.0040.00418.09
8.2.30.0040.00417.84
8.2.20.0000.00717.86
8.2.10.0060.00319.02
8.2.00.0050.00219.10
8.1.310.0070.01018.51
8.1.300.0030.00618.13
8.1.290.0030.00618.88
8.1.280.0100.01025.92
8.1.270.0080.00023.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.01023.98
8.1.230.0070.00417.70
8.1.220.0030.00817.74
8.1.210.0030.00518.77
8.1.200.0000.00817.10
8.1.190.0000.00817.10
8.1.180.0080.00318.10
8.1.170.0040.00418.36
8.1.160.0030.00318.63
8.1.150.0050.00318.80
8.1.140.0030.00518.66
8.1.130.0000.00720.16
8.1.120.0070.00017.28
8.1.110.0040.00417.23
8.1.100.0090.00017.30
8.1.90.0040.00417.33
8.1.80.0070.00017.22
8.1.70.0000.00717.27
8.1.60.0030.00617.50
8.1.50.0030.00617.37
8.1.40.0000.00817.47
8.1.30.0000.00817.54
8.1.20.0000.00817.53
8.1.10.0090.00017.41
8.1.00.0040.00417.43
8.0.300.0000.00818.77
8.0.290.0050.00316.63
8.0.280.0000.00718.38
8.0.270.0030.00318.00
8.0.260.0000.00718.43
8.0.250.0070.00016.97
8.0.240.0070.00016.93
8.0.230.0000.00716.83
8.0.220.0030.00316.76
8.0.210.0030.00616.90
8.0.200.0000.00616.95
8.0.190.0030.00616.85
8.0.180.0040.00416.86
8.0.170.0000.00816.82
8.0.160.0000.00716.96
8.0.150.0040.00416.71
8.0.140.0020.00516.79
8.0.130.0030.00313.37
8.0.120.0040.00416.80
8.0.110.0040.00416.86
8.0.100.0070.00016.73
8.0.90.0030.00517.00
8.0.80.0070.00716.87
8.0.70.0000.00716.77
8.0.60.0000.00716.88
8.0.50.0000.00816.82
8.0.30.0160.01616.95
8.0.20.0160.00617.07
8.0.10.0040.00416.97
8.0.00.0060.01316.54
7.4.330.0000.00715.55
7.4.320.0000.00716.36
7.4.300.0000.00916.48
7.4.290.0050.00316.52
7.4.280.0040.00416.36
7.4.270.0030.00516.44
7.4.260.0030.00313.12
7.4.250.0000.00716.40
7.4.240.0070.00016.45
7.4.230.0000.00716.53
7.4.220.0000.00716.39
7.4.210.0080.00816.47
7.4.200.0070.00016.61
7.4.130.0130.00616.44
7.4.120.0070.01716.43
7.4.110.0090.00916.43
7.4.100.0120.00616.46
7.4.90.0120.00616.57
7.4.80.0090.00916.50
7.4.70.0100.00716.32
7.4.60.0080.01116.55
7.4.50.0100.00716.47
7.4.40.0100.00716.34
7.4.30.0100.01016.51
7.4.20.0160.00316.39
7.4.10.0150.01016.44
7.4.00.0090.01516.46
7.3.330.0000.00716.30
7.3.320.0000.00513.11
7.3.310.0000.00816.19
7.3.300.0000.00716.29
7.3.290.0060.01016.25
7.3.260.0060.01116.71
7.3.230.0030.01316.35
7.3.220.0090.00916.50
7.3.210.0120.00916.22
7.3.200.0070.01016.42
7.3.190.0060.01316.46
7.3.180.0110.00616.55
7.3.170.0070.01016.54
7.3.160.0100.01316.33
7.3.150.0100.01316.52
7.3.140.0150.00916.55
7.3.130.0100.01316.50
7.3.120.0090.00916.33
7.3.110.0040.01416.18
7.3.100.0100.01416.33
7.3.90.0190.00616.32
7.3.80.0090.00916.20
7.3.70.0090.01216.30
7.3.60.0150.00616.40
7.3.50.0100.01016.41
7.3.40.0130.00616.38
7.3.30.0130.00816.30
7.3.20.0090.01516.23
7.3.10.0110.00716.41
7.3.00.0040.01316.32
7.2.340.0120.00616.48
7.2.330.0060.01216.55
7.2.320.0040.01316.70
7.2.310.0070.01416.43
7.2.300.0090.00916.32
7.2.290.0090.00916.58
7.2.280.0030.02116.33
7.2.270.0100.00716.71
7.2.260.0150.01116.57
7.2.250.0170.00916.47
7.2.240.0060.01216.54
7.2.230.0220.00616.36
7.2.220.0120.00916.34
7.2.210.0100.01616.36
7.2.200.0100.01316.45
7.2.190.0130.00616.42
7.2.180.0060.01316.55
7.2.170.0130.00916.62
7.2.160.0120.01216.46
7.2.150.0130.01316.49
7.2.140.0360.01316.62
7.2.130.0170.00716.44
7.2.120.0120.00616.57
7.2.110.0100.01016.61
7.2.100.0100.01016.66
7.2.90.0230.00316.63
7.2.80.0090.01516.40
7.2.70.0030.01616.48
7.2.60.0130.01716.50
7.2.50.0180.00916.63
7.2.40.0200.00416.73
7.2.30.0100.01416.61
7.2.20.0090.01216.45
7.2.10.0180.00416.46
7.2.00.0160.01016.42

preferences:
66.02 ms | 403 KiB | 5 Q