3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f(int $i){} var_dump( (int)null ); // casting null to int works fine f('1'); // string is coerced fine f(null); // null is not coerced at all

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.01116.75
8.3.50.0110.00721.93
8.3.40.0150.00018.78
8.3.30.0130.00318.84
8.3.20.0160.00320.48
8.3.10.0090.00021.69
8.3.00.0040.00421.63
8.2.180.0120.00918.41
8.2.170.0070.01022.96
8.2.160.0070.00722.04
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00419.70
8.2.120.0040.00426.35
8.2.110.0070.00321.14
8.2.100.0090.00317.66
8.2.90.0030.00619.05
8.2.80.0000.00917.97
8.2.70.0030.00617.63
8.2.60.0000.00917.80
8.2.50.0040.00418.10
8.2.40.0080.00020.43
8.2.30.0040.00419.00
8.2.20.0040.00417.93
8.2.10.0080.00017.91
8.2.00.0050.00217.54
8.1.280.0140.00725.92
8.1.270.0080.00022.19
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0040.00423.92
8.1.230.0030.00919.03
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0070.00317.22
8.1.190.0030.00717.13
8.1.180.0070.00018.10
8.1.170.0000.00818.46
8.1.160.0070.00022.13
8.1.150.0070.00022.06
8.1.140.0000.00919.45
8.1.130.0030.00317.49
8.1.120.0030.00517.33
8.1.110.0000.00717.33
8.1.100.0000.01017.36
8.1.90.0000.00717.33
8.1.80.0000.00717.30
8.1.70.0020.00517.20
8.1.60.0000.00817.41
8.1.50.0080.00017.46
8.1.40.0030.00717.44
8.1.30.0060.00317.60
8.1.20.0040.00417.45
8.1.10.0000.00717.50
8.1.00.0060.00617.35
8.0.300.0020.00520.03
8.0.290.0000.00716.75
8.0.280.0000.00718.38
8.0.270.0030.00316.82
8.0.260.0040.00417.19
8.0.250.0030.00316.96
8.0.240.0030.00316.93
8.0.230.0030.00317.01
8.0.220.0070.00016.92
8.0.210.0070.00016.91
8.0.200.0030.00316.84
8.0.190.0000.00816.98
8.0.180.0040.00416.89
8.0.170.0000.00816.81
8.0.160.0030.00316.99
8.0.150.0040.00416.78
8.0.140.0050.00216.86
8.0.130.0030.00313.27
8.0.120.0000.00716.82
8.0.110.0000.00816.79
8.0.100.0000.00716.95
8.0.90.0000.00816.92
8.0.80.0060.00916.95
8.0.70.0040.00416.77
8.0.60.0040.00416.79
8.0.50.0020.00516.86
8.0.30.0070.01217.04
8.0.20.0140.00717.40
8.0.10.0050.00216.88
8.0.00.0100.00716.69
7.4.330.0020.00215.55
7.4.320.0060.00016.40
7.4.300.0000.00616.48
7.4.290.0030.00316.50
7.4.280.0000.00916.45
7.4.270.0030.00516.52
7.4.260.0030.00516.52
7.4.250.0030.00316.47
7.4.240.0040.00416.58
7.4.230.0030.00316.51
7.4.220.0140.00616.48
7.4.210.0100.01016.48
7.4.200.0030.00316.60
7.4.160.0100.00616.46
7.4.150.0070.01117.40
7.4.140.0080.00817.86
7.4.130.0070.01316.40
7.4.120.0120.00516.41
7.4.110.0120.00416.29
7.4.100.0040.01416.48
7.4.90.0090.00916.34
7.4.80.0150.00419.39
7.4.70.0070.01016.34
7.4.60.0130.00316.29
7.4.50.0060.00816.09
7.4.40.0160.00016.56
7.4.30.0110.00616.70
7.4.00.0060.00915.13
7.3.330.0060.00013.13
7.3.320.0030.00313.37
7.3.310.0030.00516.20
7.3.300.0070.00016.35
7.3.290.0060.01016.29
7.3.280.0080.01116.27
7.3.270.0030.01417.40
7.3.260.0100.00816.29
7.3.250.0140.00516.35
7.3.240.0120.00416.28
7.3.230.0100.00716.50
7.3.210.0110.00916.25
7.3.200.0120.00616.37
7.3.190.0090.00616.44
7.3.180.0120.00616.36
7.3.170.0130.01016.43
7.3.160.0160.00616.55
7.2.330.0140.00316.61
7.2.320.0090.01216.55
7.2.310.0220.00016.53
7.2.300.0110.00716.52
7.2.290.0070.01116.57
7.2.60.0030.01016.74
7.2.00.0030.01319.09
7.1.200.0090.00315.80
7.1.100.0070.00718.38
7.1.70.0030.00916.95
7.1.60.0030.00917.27
7.1.50.0100.01316.86
7.1.00.0130.06722.28
7.0.200.0070.00316.72
7.0.120.0100.05721.98
7.0.110.0000.07022.07
7.0.100.0130.06322.01
7.0.90.0030.06722.15
7.0.80.0070.08022.05
7.0.70.0030.06022.08
7.0.60.0100.05722.11
7.0.50.0100.08322.09
7.0.40.0070.07721.99
7.0.30.0070.06022.09
7.0.20.0170.06022.05
7.0.10.0170.06722.14
7.0.00.0100.06722.05
5.6.270.0030.06321.07
5.6.260.0000.06321.02
5.6.250.0130.05320.87
5.6.240.0070.08020.75
5.6.230.0030.08020.96
5.6.220.0100.06321.00
5.6.210.0170.06720.88
5.6.200.0100.06320.98
5.6.190.0030.08721.07
5.6.180.0130.05021.03
5.6.170.0100.06020.83
5.6.160.0100.06720.85
5.6.150.0130.07021.02
5.6.140.0100.06021.02
5.6.130.0170.06720.75
5.6.120.0170.07020.75
5.6.110.0200.07320.86
5.6.100.0100.08020.84
5.6.90.0070.05720.98
5.6.80.0030.07720.38
5.6.70.0100.07020.24
5.6.60.0130.05320.39
5.6.50.0070.06720.39
5.6.40.0070.05720.12
5.6.30.0100.07320.16
5.6.20.0100.06020.36
5.6.10.0000.06320.39
5.6.00.0100.06720.35

preferences:
56.24 ms | 401 KiB | 5 Q