3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function someFunction(int $someVariable): bool { if ($someVariable > 10) { return true; } else if ($someVariable < -10) { return false; } return null; } someFunction($variable ?? 11);

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.0140.00016.50
8.3.50.0140.00721.27
8.3.40.0140.00718.37
8.3.30.0110.00418.50
8.3.20.0040.00420.36
8.3.10.0080.00021.65
8.3.00.0050.00321.65
8.2.180.0120.00316.32
8.2.170.0040.01122.96
8.2.160.0100.00720.32
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.97
8.2.120.0080.00026.35
8.2.110.0070.00319.32
8.2.100.0080.00317.72
8.2.90.0050.00319.10
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0040.00417.91
8.2.50.0000.00818.09
8.2.40.0000.00822.38
8.2.30.0000.00719.41
8.2.20.0000.00717.62
8.2.10.0040.00417.89
8.2.00.0000.00817.80
8.1.280.0140.00325.92
8.1.270.0110.00722.07
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0060.00321.27
8.1.230.0070.00317.42
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0000.01017.35
8.1.190.0040.00417.10
8.1.180.0030.00618.10
8.1.170.0040.00418.46
8.1.160.0040.00420.69
8.1.150.0030.00618.66
8.1.140.0060.00319.48
8.1.130.0000.00717.58
8.1.120.0040.00417.26
8.1.110.0070.00017.32
8.1.100.0000.00717.29
8.1.90.0040.00417.32
8.1.80.0040.00717.23
8.1.70.0000.00717.30
8.1.60.0040.00417.50
8.1.50.0060.00317.38
8.1.40.0030.00517.35
8.1.30.0060.00317.56
8.1.20.0000.00717.54
8.1.10.0080.00017.46
8.1.00.0050.00317.42
8.0.300.0060.00318.77
8.0.290.0050.00216.63
8.0.280.0000.00718.18
8.0.270.0000.00717.08
8.0.260.0030.00317.16
8.0.250.0000.00716.81
8.0.240.0000.00716.69
8.0.230.0030.00316.82
8.0.220.0000.00816.79
8.0.210.0000.00716.65
8.0.200.0060.00016.71
8.0.190.0060.00316.85
8.0.180.0000.00716.79
8.0.170.0000.00716.66
8.0.160.0040.00416.77
8.0.150.0000.00716.60
8.0.140.0080.00016.71
8.0.130.0000.00513.19
8.0.120.0040.00416.73
8.0.110.0030.00516.66
8.0.100.0000.00816.61
8.0.90.0000.00716.80
8.0.80.0060.00916.77
8.0.70.0020.00516.71
8.0.60.0000.00816.64
8.0.50.0040.00416.76
8.0.30.0060.01617.13
8.0.20.0110.01017.40
8.0.10.0030.00516.95
8.0.00.0100.00716.51
7.4.330.0000.00516.77
7.4.320.0000.00616.46
7.4.300.0070.00016.52
7.4.290.0070.00316.46
7.4.280.0030.00416.52
7.4.270.0060.00016.45
7.4.260.0000.00716.54
7.4.250.0070.00016.45
7.4.240.0000.00716.56
7.4.230.0000.00716.31
7.4.220.0130.00516.54
7.4.210.0060.00816.48
7.4.200.0030.00316.55
7.4.160.0080.00716.45
7.4.150.0170.00017.40
7.4.140.0130.00817.86
7.4.130.0110.00816.43
7.4.120.0140.00516.46
7.4.110.0000.02116.57
7.4.100.0130.00316.43
7.4.90.0070.01016.59
7.4.80.0090.00619.39
7.4.70.0070.01516.45
7.4.60.0100.00716.34
7.4.50.0060.01016.44
7.4.40.0120.01116.55
7.4.30.0110.00616.27
7.4.00.0070.00714.70
7.3.330.0030.00313.14
7.3.320.0030.00313.37
7.3.310.0040.00416.32
7.3.300.0060.00016.30
7.3.290.0040.00416.26
7.3.280.0080.01116.29
7.3.270.0130.01017.40
7.3.260.0150.00316.32
7.3.250.0110.00616.35
7.3.240.0050.01116.47
7.3.230.0090.01316.39
7.3.210.0150.00316.52
7.3.200.0030.02019.39
7.3.190.0040.01216.57
7.3.180.0100.01316.26
7.3.170.0060.01316.33
7.3.160.0060.01016.31
7.3.10.0030.00916.32
7.3.00.0000.01216.56
7.2.330.0070.01016.66
7.2.320.0100.00716.59
7.2.310.0140.00316.68
7.2.300.0100.01316.43
7.2.290.0080.00816.45
7.2.130.0110.00416.71
7.2.120.0130.00316.67
7.2.110.0110.00316.41
7.2.100.0300.00716.27
7.2.90.0180.00316.72
7.2.80.0100.00616.30
7.2.70.0090.00916.70
7.2.60.0080.00516.84
7.2.50.0250.00416.57
7.2.40.0260.01016.63
7.2.30.0080.00816.84
7.2.20.0070.00716.70
7.2.10.0040.00416.45
7.2.00.0040.00817.91
7.1.250.0080.00415.68
7.1.200.0090.00315.77
7.1.100.0040.00718.02
7.1.70.0070.00716.97
7.1.60.0000.01819.40
7.1.50.0120.00916.80
7.1.00.0000.06722.51
7.0.200.0570.00714.84
7.0.60.0230.07321.73
7.0.50.0000.04317.84
7.0.40.0030.09020.30
7.0.30.0230.07020.24
7.0.20.0330.06320.06
7.0.10.0130.08020.30
7.0.00.0030.07720.20
5.6.280.0000.03321.14
5.6.210.0100.04320.77
5.6.200.0070.03718.29
5.6.190.0130.04720.46
5.6.180.0470.06720.64
5.6.170.0300.07320.44
5.6.160.0100.06720.50
5.6.150.0030.04018.19
5.6.140.0130.07018.11
5.6.130.0100.07718.18
5.6.120.0100.08021.02
5.6.110.0130.05021.09
5.6.100.0130.03020.98
5.6.90.0170.06020.98
5.6.80.0070.05020.37
5.5.350.0400.06720.41
5.5.340.0000.07718.03
5.5.330.0100.05720.44
5.5.320.0470.04020.32
5.5.310.0330.06720.27
5.5.300.0030.07717.95
5.5.290.0130.06718.09
5.5.280.0000.08720.84
5.5.270.0070.08020.71
5.5.260.0000.05020.87
5.5.250.0100.07020.69
5.5.240.0130.07020.19

preferences:
38.76 ms | 401 KiB | 5 Q