3v4l.org

run code in 300+ PHP versions simultaneously
<?php function someFunction(int $someVariable): boolean { 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.0120.00316.75
8.3.50.0040.01116.15
8.3.40.0120.00318.71
8.3.30.0110.00418.59
8.3.20.0040.00420.34
8.3.10.0070.00021.65
8.3.00.0070.00021.61
8.2.180.0110.01118.29
8.2.170.0100.00722.96
8.2.160.0110.00720.37
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0050.00321.07
8.2.120.0080.00026.35
8.2.110.0030.00620.52
8.2.100.0070.00417.91
8.2.90.0030.00619.22
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0050.00317.66
8.2.50.0060.00318.09
8.2.40.0040.00422.27
8.2.30.0080.00019.49
8.2.20.0000.00817.61
8.2.10.0040.00417.99
8.2.00.0000.00818.03
8.1.280.0140.00725.92
8.1.270.0040.00422.14
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0030.00623.98
8.1.230.0120.00017.42
8.1.220.0030.00617.74
8.1.210.0030.00518.77
8.1.200.0090.00317.35
8.1.190.0060.00317.23
8.1.180.0000.00718.10
8.1.170.0040.00418.32
8.1.160.0070.00020.50
8.1.150.0060.00318.71
8.1.140.0050.00319.44
8.1.130.0000.00717.46
8.1.120.0000.00717.26
8.1.110.0000.00817.30
8.1.100.0040.00417.23
8.1.90.0000.00717.34
8.1.80.0000.00917.21
8.1.70.0030.00317.37
8.1.60.0040.00417.54
8.1.50.0060.00317.38
8.1.40.0030.00517.36
8.1.30.0060.00317.47
8.1.20.0050.00317.53
8.1.10.0040.00417.39
8.1.00.0030.00617.31
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0030.00318.38
8.0.270.0030.00517.16
8.0.260.0030.00317.16
8.0.250.0000.00716.94
8.0.240.0030.00316.96
8.0.230.0030.00316.80
8.0.220.0050.00316.80
8.0.210.0030.00316.79
8.0.200.0030.00316.83
8.0.190.0030.00616.97
8.0.180.0040.00416.91
8.0.170.0000.00716.87
8.0.160.0040.00416.91
8.0.150.0030.00616.80
8.0.140.0050.00316.73
8.0.130.0000.00513.27
8.0.120.0040.00416.86
8.0.110.0030.00516.86
8.0.100.0040.00416.73
8.0.90.0040.00416.82
8.0.80.0110.01416.93
8.0.70.0070.00016.68
8.0.60.0040.00416.76
8.0.50.0000.00716.83
8.0.30.0090.00917.05
8.0.20.0060.01217.40
8.0.10.0050.00316.72
8.0.00.0090.01016.79
7.4.330.0020.00216.67
7.4.320.0030.00316.36
7.4.300.0030.00516.50
7.4.290.0030.00616.40
7.4.280.0000.00816.44
7.4.270.0040.00416.47
7.4.260.0000.00716.28
7.4.250.0030.00316.50
7.4.240.0030.00316.50
7.4.230.0030.00316.47
7.4.220.0070.01016.55
7.4.210.0090.00616.50
7.4.200.0070.00016.61
7.4.160.0090.00916.62
7.4.150.0100.00717.40
7.4.140.0130.00817.86
7.4.130.0100.00716.61
7.4.120.0080.01116.56
7.4.110.0100.00716.68
7.4.100.0080.00816.40
7.4.90.0130.00316.40
7.4.80.0000.01719.39
7.4.70.0080.01216.46
7.4.60.0030.01316.50
7.4.50.0170.00016.14
7.4.40.0140.00616.38
7.4.30.0100.00716.29
7.4.00.0050.00914.78
7.3.330.0000.00613.21
7.3.320.0050.00013.22
7.3.310.0030.00316.38
7.3.300.0000.00716.37
7.3.290.0030.00316.40
7.3.280.0090.00916.34
7.3.270.0000.01717.40
7.3.260.0120.00616.45
7.3.250.0090.00916.48
7.3.240.0060.01316.46
7.3.230.0070.01116.43
7.3.210.0160.00716.50
7.3.200.0080.01219.39
7.3.190.0070.01016.43
7.3.180.0120.00416.44
7.3.170.0000.01716.36
7.3.160.0090.00616.66
7.2.330.0070.01116.42
7.2.320.0110.00516.32
7.2.310.0110.00916.51
7.2.300.0100.00716.42
7.2.290.0120.00416.57
7.2.80.0180.01916.27
7.2.60.0030.01416.88
7.2.00.0060.01219.46
7.1.200.0230.00715.55
7.1.100.0000.01118.01
7.1.70.0110.00417.03
7.1.60.0000.02119.40
7.1.50.0090.01316.91
7.1.00.0100.06722.31
7.0.200.0410.00314.68
7.0.60.0270.07321.66
7.0.50.0070.04717.90
7.0.40.0070.08020.23
7.0.30.0270.07720.24
7.0.20.0270.05020.30
7.0.10.0100.04720.09
7.0.00.0070.07320.09
5.6.280.0070.03720.92
5.6.210.0030.08020.51
5.6.200.0000.04318.24
5.6.190.0030.05020.39
5.6.180.0200.04720.63
5.6.170.0270.06320.42
5.6.160.0100.05020.48
5.6.150.0030.04318.22
5.6.140.0030.04318.17
5.6.130.0100.04018.19
5.6.120.0070.04721.12
5.6.110.0200.07020.99
5.6.100.0000.04320.98
5.6.90.0100.05721.11
5.6.80.0130.08020.52
5.5.350.0300.07720.35
5.5.340.0030.05717.97
5.5.330.0030.06320.13
5.5.320.0530.05020.31
5.5.310.0330.04320.51
5.5.300.0130.05317.95
5.5.290.0100.07717.97
5.5.280.0100.08320.98
5.5.270.0070.08320.95
5.5.260.0000.04320.79
5.5.250.0070.08320.77
5.5.240.0270.06020.26

preferences:
45 ms | 401 KiB | 5 Q