3v4l.org

run code in 300+ PHP versions simultaneously
<?php function rechne(?string $test): ?int { if ($test) { return 0; } else { return null; } } var_dump(rechne(null));

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.00718.43
8.3.50.0110.00721.13
8.3.40.0070.00718.65
8.3.30.0150.00018.47
8.3.20.0000.00718.63
8.3.10.0070.00021.60
8.3.00.0040.00420.79
8.2.180.0100.00716.32
8.2.170.0110.00722.96
8.2.160.0070.00720.44
8.2.150.0000.00725.66
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0060.00318.58
8.2.110.0070.00320.99
8.2.100.0070.00417.78
8.2.90.0040.00420.53
8.2.80.0040.00419.06
8.2.70.0060.00317.91
8.2.60.0040.00417.70
8.2.50.0030.00618.10
8.2.40.0050.00320.61
8.2.30.0050.00219.11
8.2.20.0040.00417.87
8.2.10.0000.00717.84
8.2.00.0040.00417.39
8.1.280.0100.01025.92
8.1.270.0000.00722.19
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00322.29
8.1.230.0040.00820.88
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0090.00017.23
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0050.00318.65
8.1.160.0030.00318.70
8.1.150.0030.00520.18
8.1.140.0070.00019.34
8.1.130.0030.00317.48
8.1.120.0070.00017.29
8.1.110.0070.00017.29
8.1.100.0040.00417.36
8.1.90.0040.00417.22
8.1.80.0050.00317.30
8.1.70.0050.00317.24
8.1.60.0000.00717.54
8.1.50.0060.00317.30
8.1.40.0030.00517.32
8.1.30.0080.00017.43
8.1.20.0120.00017.56
8.1.10.0030.00617.39
8.1.00.0000.00817.33
8.0.300.0080.00019.77
8.0.290.0100.00516.58
8.0.280.0000.00718.30
8.0.270.0030.00317.14
8.0.260.0030.00317.15
8.0.250.0060.00316.81
8.0.240.0040.00416.83
8.0.230.0030.00316.82
8.0.220.0040.00416.71
8.0.210.0070.00016.74
8.0.200.0030.00316.70
8.0.190.0050.00216.82
8.0.180.0070.00016.80
8.0.170.0060.00316.66
8.0.160.0030.00316.77
8.0.150.0000.00816.73
8.0.140.0030.00516.69
8.0.130.0030.00313.22
8.0.120.0000.00716.72
8.0.110.0000.00716.77
8.0.100.0000.00716.79
8.0.90.0030.00516.60
8.0.80.0000.01516.71
8.0.70.0000.00716.76
8.0.60.0070.00016.60
8.0.50.0080.00016.57
8.0.30.0080.00916.94
8.0.20.0120.00817.40
8.0.10.0070.00016.76
8.0.00.0110.00716.74
7.4.330.0070.00015.55
7.4.320.0030.00316.40
7.4.300.0000.00616.48
7.4.290.0030.00316.41
7.4.280.0040.00416.49
7.4.270.0050.00316.33
7.4.260.0030.00316.55
7.4.250.0040.00416.33
7.4.240.0000.00716.42
7.4.230.0070.00016.36
7.4.220.0120.00616.46
7.4.210.0030.01216.50
7.4.200.0030.00316.52
7.4.160.0050.01316.37
7.4.150.0030.01317.40
7.4.140.0080.01017.86
7.4.130.0100.00916.43
7.4.120.0070.01016.42
7.4.110.0060.01216.54
7.4.100.0070.01716.54
7.4.90.0130.00616.58
7.4.80.0100.00719.39
7.4.70.0170.00616.34
7.4.60.0090.01416.40
7.4.50.0130.00316.20
7.4.40.0110.01216.33
7.4.30.0180.00016.57
7.3.330.0060.00013.21
7.3.320.0060.00013.09
7.3.310.0000.00716.10
7.3.300.0050.00316.08
7.3.290.0050.01016.24
7.3.280.0140.00316.23
7.3.270.0150.00317.40
7.3.260.0080.01016.23
7.3.250.0120.00716.25
7.3.240.0120.00916.37
7.3.230.0070.01116.39
7.3.210.0090.00916.13
7.3.200.0100.00716.25
7.3.190.0100.01016.38
7.3.180.0090.00916.48
7.3.170.0110.00716.30
7.3.160.0070.01016.43
7.2.330.0120.00616.43
7.2.320.0090.00916.42
7.2.310.0060.01016.22
7.2.300.0080.00916.60
7.2.290.0120.00816.14
7.1.00.0070.06022.46
7.0.130.0070.05322.17
7.0.120.0100.05721.96
7.0.110.0030.07022.12
7.0.100.0170.06022.13
7.0.90.0100.05322.11
7.0.80.0200.04322.26
7.0.70.0130.06022.04
7.0.60.0070.06022.19
7.0.50.0070.05322.03
7.0.40.0070.06321.99
7.0.30.0100.08322.04
7.0.20.0000.08022.05
7.0.10.0200.07322.00
7.0.00.0130.05321.98
5.6.280.0070.05721.10
5.6.270.0070.05720.92
5.6.260.0070.06021.04
5.6.250.0100.05720.86
5.6.240.0070.06021.15
5.6.230.0070.07320.72
5.6.220.0170.05320.95
5.6.210.0000.06020.90
5.6.200.0100.05320.85
5.6.190.0100.06720.88
5.6.180.0070.06321.02
5.6.170.0100.06720.92
5.6.160.0170.05021.09
5.6.150.0070.06021.07
5.6.140.0070.06320.91
5.6.130.0100.06321.08
5.6.120.0070.07320.86
5.6.110.0070.06020.85
5.6.100.0070.06720.87
5.6.90.0070.06020.83
5.6.80.0130.04720.44
5.6.70.0000.06720.45
5.6.60.0170.07720.41
5.6.50.0070.05320.41
5.6.40.0070.05320.24
5.6.30.0070.05320.38
5.6.20.0100.05020.38
5.6.10.0100.04720.20
5.6.00.0100.05320.18

preferences:
30.77 ms | 401 KiB | 5 Q