3v4l.org

run code in 300+ PHP versions simultaneously
<?php function someFunction(int $someVariable): bool { if ($someVariable > 10) { return true; } else if ($someVariable < -10) { return false; } return null; } echo someFunction("11"); echo someFunction("-11"); echo someFunction("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.3.60.0090.00616.50
8.3.50.0090.01321.09
8.3.40.0040.01118.84
8.3.30.0140.00018.58
8.3.20.0040.00420.07
8.3.10.0000.00721.83
8.3.00.0090.00021.77
8.2.180.0030.01416.50
8.2.170.0140.00022.96
8.2.160.0070.01020.35
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00821.17
8.2.120.0070.00026.35
8.2.110.0090.00019.14
8.2.100.0060.00617.80
8.2.90.0000.00819.21
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0040.00418.09
8.2.40.0040.00422.34
8.2.30.0000.00819.34
8.2.20.0040.00417.65
8.2.10.0080.00017.91
8.2.00.0040.00417.99
8.1.280.0100.00725.92
8.1.270.0080.00022.14
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0050.00522.54
8.1.230.0040.00717.82
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0090.00017.13
8.1.190.0080.00017.10
8.1.180.0060.00318.10
8.1.170.0030.00518.28
8.1.160.0040.00420.57
8.1.150.0060.00320.54
8.1.140.0000.00819.44
8.1.130.0000.00717.46
8.1.120.0070.00017.25
8.1.110.0000.00717.38
8.1.100.0030.00517.28
8.1.90.0070.00017.31
8.1.80.0080.00317.23
8.1.70.0070.00017.31
8.1.60.0070.00017.57
8.1.50.0090.00017.37
8.1.40.0040.00417.35
8.1.30.0060.00317.46
8.1.20.0000.00717.43
8.1.10.0050.00317.45
8.1.00.0080.00317.41
8.0.300.0080.00018.84
8.0.290.0000.00816.75
8.0.280.0030.00318.39
8.0.270.0000.00717.29
8.0.260.0000.00617.16
8.0.250.0030.00317.02
8.0.240.0000.00616.89
8.0.230.0000.00716.83
8.0.220.0050.00316.78
8.0.210.0000.00716.89
8.0.200.0030.00316.82
8.0.190.0050.00216.93
8.0.180.0000.00716.75
8.0.170.0040.00416.91
8.0.160.0070.00016.77
8.0.150.0040.00416.89
8.0.140.0030.00516.87
8.0.130.0000.00513.27
8.0.120.0080.00016.76
8.0.110.0040.00416.87
8.0.100.0040.00416.73
8.0.90.0030.00316.76
8.0.80.0040.01216.93
8.0.70.0000.00716.75
8.0.60.0000.00816.93
8.0.50.0040.00416.78
8.0.30.0070.00917.14
8.0.20.0140.00817.40
8.0.10.0040.00416.98
8.0.00.0090.01016.82
7.4.330.0050.00016.77
7.4.320.0000.00616.52
7.4.300.0000.00716.43
7.4.290.0040.00416.43
7.4.280.0080.00016.55
7.4.270.0000.00616.33
7.4.260.0000.00716.56
7.4.250.0070.00016.25
7.4.240.0050.00316.42
7.4.230.0030.00316.31
7.4.220.0060.01216.40
7.4.210.0110.00516.47
7.4.200.0000.00816.32
7.4.160.0120.00416.37
7.4.150.0150.00317.40
7.4.140.0120.00917.86
7.4.130.0110.00916.38
7.4.120.0100.00616.42
7.4.110.0100.00616.38
7.4.100.0170.00716.37
7.4.90.0070.01016.38
7.4.80.0070.01019.39
7.4.70.0110.00616.42
7.4.60.0060.00916.31
7.4.50.0040.01116.59
7.4.40.0170.00716.71
7.4.30.0130.00316.33
7.4.00.0070.00314.66
7.3.330.0030.00313.18
7.3.320.0030.00313.29
7.3.310.0000.00716.34
7.3.300.0000.00716.31
7.3.290.0070.00016.22
7.3.280.0080.00816.39
7.3.270.0120.00617.40
7.3.260.0090.00916.45
7.3.250.0100.00816.38
7.3.240.0070.01016.40
7.3.230.0060.00916.41
7.3.210.0110.00716.30
7.3.200.0060.01619.39
7.3.190.0090.01216.57
7.3.180.0110.00816.37
7.3.170.0100.00716.29
7.3.160.0090.00616.30
7.2.330.0100.00716.64
7.2.320.0000.01716.41
7.2.310.0060.01116.52
7.2.300.0070.01016.38
7.2.290.0060.00916.34
7.2.80.0040.00816.70
7.2.60.0000.01516.66
7.2.00.0080.00819.58
7.1.200.0120.00315.86
7.1.100.0030.00618.37
7.1.70.0090.00417.16
7.1.60.0090.01219.40
7.1.50.0000.02216.89
7.1.00.0030.07322.45
7.0.200.0390.00614.89
7.0.60.0270.07321.87
7.0.50.0070.03717.72
7.0.40.0070.08320.06
7.0.30.0230.04320.24
7.0.20.0300.06020.06
7.0.10.0100.07320.26
7.0.00.0070.05320.23
5.6.280.0030.05021.13
5.6.210.0170.07020.75
5.6.200.0030.04718.13
5.6.190.0030.05720.55
5.6.180.0170.04320.63
5.6.170.0370.05720.52
5.6.160.0030.08720.54
5.6.150.0100.03718.19
5.6.140.0070.04318.21
5.6.130.0030.04018.18
5.6.120.0030.08720.99
5.6.110.0070.08321.11
5.6.100.0070.08021.00
5.6.90.0070.05321.13
5.6.80.0200.06720.37
5.5.350.0330.05320.40
5.5.340.0070.08318.09
5.5.330.0030.04320.23
5.5.320.0530.04720.32
5.5.310.0230.05320.51
5.5.300.0030.04017.95
5.5.290.0130.07318.08
5.5.280.0030.08020.68
5.5.270.0000.05320.87
5.5.260.0070.04020.87
5.5.250.0170.07320.65
5.5.240.0300.07020.21

preferences:
42.24 ms | 401 KiB | 5 Q