3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( (int)null ); // casting null to int works fine function f(int $i) { } 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.0090.00916.48
8.3.50.0070.01121.98
8.3.40.0140.00718.79
8.3.30.0100.00718.67
8.3.20.0120.00620.48
8.3.10.0030.00621.73
8.3.00.0080.00021.60
8.2.180.0090.00616.50
8.2.170.0100.00322.96
8.2.160.0030.01022.08
8.2.150.0050.00224.18
8.2.140.0050.00224.66
8.2.130.0030.00626.16
8.2.120.0040.00419.52
8.2.110.0100.00021.07
8.2.100.0080.00417.91
8.2.90.0000.00819.05
8.2.80.0030.00617.97
8.2.70.0080.00017.50
8.2.60.0000.00817.88
8.2.50.0060.00318.10
8.2.40.0040.00420.42
8.2.30.0000.00719.25
8.2.20.0030.00517.97
8.2.10.0040.00417.97
8.2.00.0040.00417.73
8.1.280.0000.01425.92
8.1.270.0060.00322.14
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00924.02
8.1.230.0100.00019.16
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.01217.23
8.1.180.0040.00418.10
8.1.170.0080.00018.40
8.1.160.0040.00422.18
8.1.150.0000.01021.93
8.1.140.0060.00319.47
8.1.130.0030.00317.48
8.1.120.0040.00417.34
8.1.110.0040.00417.35
8.1.100.0030.00517.19
8.1.90.0040.00417.30
8.1.80.0030.00317.25
8.1.70.0000.00717.36
8.1.60.0030.00517.53
8.1.50.0040.00417.45
8.1.40.0060.00617.48
8.1.30.0030.00517.56
8.1.20.0040.00417.41
8.1.10.0000.00717.46
8.1.00.0030.00617.41
8.0.300.0070.00020.02
8.0.290.0080.00016.75
8.0.280.0030.00318.39
8.0.270.0070.00017.19
8.0.260.0000.00817.20
8.0.250.0070.00016.97
8.0.240.0020.00516.83
8.0.230.0000.00716.95
8.0.220.0030.00316.87
8.0.210.0000.00616.84
8.0.200.0060.00016.98
8.0.190.0070.00016.90
8.0.180.0000.00716.84
8.0.170.0040.00416.92
8.0.160.0000.00816.91
8.0.150.0040.00416.70
8.0.140.0070.00016.74
8.0.130.0050.00013.39
8.0.120.0050.00316.82
8.0.110.0000.00716.71
8.0.100.0040.00416.79
8.0.90.0040.00416.80
8.0.80.0100.00616.86
8.0.70.0000.00716.73
8.0.60.0000.00716.88
8.0.50.0000.00716.77
8.0.30.0120.00717.05
8.0.20.0060.01417.40
8.0.10.0040.00416.86
8.0.00.0150.00316.61
7.4.330.0000.00515.55
7.4.320.0000.00616.38
7.4.300.0060.00016.44
7.4.290.0000.00716.54
7.4.280.0000.00816.51
7.4.270.0050.00216.52
7.4.260.0040.00416.43
7.4.250.0030.00316.54
7.4.240.0040.00416.54
7.4.230.0000.00816.26
7.4.220.0100.01016.48
7.4.210.0070.01016.57
7.4.200.0030.00316.27
7.4.160.0080.01016.48
7.4.150.0120.00617.40
7.4.140.0130.00717.86
7.4.130.0110.00916.48
7.4.120.0100.00916.48
7.4.110.0100.00716.75
7.4.100.0170.00716.33
7.4.90.0120.01216.31
7.4.80.0120.00619.39
7.4.70.0120.00916.64
7.4.60.0000.01616.41
7.4.50.0030.01016.43
7.4.40.0070.01016.57
7.4.30.0130.00316.62
7.4.00.0070.00315.12
7.3.330.0030.00313.25
7.3.320.0000.00613.16
7.3.310.0000.00716.20
7.3.300.0080.00016.26
7.3.290.0090.00616.23
7.3.280.0110.00816.28
7.3.270.0140.00317.40
7.3.260.0090.00816.38
7.3.250.0100.00916.47
7.3.240.0080.01116.54
7.3.230.0110.00616.57
7.3.210.0090.01116.32
7.3.200.0100.00616.23
7.3.190.0110.00616.52
7.3.180.0100.01016.48
7.3.170.0140.00716.58
7.3.160.0090.01216.33
7.2.330.0090.00916.53
7.2.320.0090.00916.27
7.2.310.0060.01516.70
7.2.300.0030.01316.36
7.2.290.0130.01016.63
7.2.60.0120.00316.59
7.2.00.0100.00719.21
7.1.200.0070.00315.92
7.1.100.0040.00718.05
7.1.70.0000.00916.95
7.1.60.0030.00917.06
7.1.50.0080.01517.04
7.1.00.0030.07722.57
7.0.200.0000.00716.76
7.0.120.0170.07022.10
7.0.110.0230.07322.00
7.0.100.0030.08022.17
7.0.90.0170.07722.20
7.0.80.0130.06322.02
7.0.70.0030.05722.14
7.0.60.0030.05722.02
7.0.50.0130.05022.13
7.0.40.0030.06022.11
7.0.30.0170.04322.07
7.0.20.0000.06721.98
7.0.10.0130.05022.18
7.0.00.0070.05722.04
5.6.270.0100.07720.86
5.6.260.0070.07020.88
5.6.250.0200.06321.06
5.6.240.0170.06020.89
5.6.230.0070.08020.80
5.6.220.0170.06020.86
5.6.210.0100.05020.90
5.6.200.0030.06021.09
5.6.190.0070.07021.00
5.6.180.0130.05021.04
5.6.170.0070.05721.09
5.6.160.0070.08320.95
5.6.150.0100.05720.93
5.6.140.0130.05021.06
5.6.130.0070.06320.79
5.6.120.0070.05720.80
5.6.110.0030.06020.82
5.6.100.0000.06321.02
5.6.90.0100.05020.93
5.6.80.0070.05020.42
5.6.70.0130.04720.21
5.6.60.0070.05320.21
5.6.50.0030.07020.31
5.6.40.0100.05020.19
5.6.30.0070.05320.41
5.6.20.0100.05020.30
5.6.10.0130.05320.21
5.6.00.0070.05720.17

preferences:
54.47 ms | 401 KiB | 5 Q