3v4l.org

run code in 300+ PHP versions simultaneously
<?php function testFunction($argument) { return empty($argument) ? 'all' : strtoupper($argument); } testFunction(''); testFunction('hello');

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.40
8.3.50.0120.00318.27
8.3.40.0040.01218.65
8.3.30.0040.01118.42
8.3.20.0000.00920.39
8.3.10.0080.00023.48
8.3.00.0080.00019.43
8.2.180.0150.00318.37
8.2.170.0150.00022.96
8.2.160.0070.00718.74
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0100.00321.04
8.2.110.0030.00720.26
8.2.100.0120.00017.66
8.2.90.0040.00417.91
8.2.80.0070.00020.39
8.2.70.0050.00317.80
8.2.60.0030.00517.80
8.2.50.0040.00418.10
8.2.40.0000.00720.45
8.2.30.0040.00418.94
8.2.20.0040.00418.03
8.2.10.0020.00517.91
8.2.00.0030.00317.98
8.1.280.0160.00325.92
8.1.270.0090.00020.20
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00720.63
8.1.230.0070.00421.02
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0060.00317.10
8.1.190.0030.00617.10
8.1.180.0070.00418.10
8.1.170.0050.00318.52
8.1.160.0000.00718.69
8.1.150.0050.00320.16
8.1.140.0040.00417.57
8.1.130.0000.00818.80
8.1.120.0030.00317.34
8.1.110.0040.00317.36
8.1.100.0000.00717.23
8.1.90.0050.00317.34
8.1.80.0040.00417.35
8.1.70.0000.01017.23
8.1.60.0060.00317.52
8.1.50.0000.00817.47
8.1.40.0070.00017.48
8.1.30.0040.00417.52
8.1.20.0000.00817.46
8.1.10.0040.00417.28
8.1.00.0030.00617.28
8.0.300.0040.00422.03
8.0.290.0080.00016.63
8.0.280.0030.00318.37
8.0.270.0000.00717.13
8.0.260.0050.00216.55
8.0.250.0000.00716.72
8.0.240.0060.00316.85
8.0.230.0030.00516.81
8.0.220.0040.00416.65
8.0.210.0080.00016.74
8.0.200.0000.00816.83
8.0.190.0050.00316.73
8.0.180.0070.00016.79
8.0.170.0060.00316.83
8.0.160.0030.00416.80
8.0.150.0040.00416.76
8.0.140.0030.00516.61
8.0.130.0030.00313.23
8.0.120.0070.00016.75
8.0.110.0050.00216.67
8.0.100.0000.00716.77
8.0.90.0050.00316.67
8.0.80.0060.01016.68
8.0.70.0050.00216.74
8.0.60.0040.00416.67
8.0.50.0040.00416.71
8.0.30.0100.00917.14
8.0.20.0100.00817.40
8.0.10.0040.00416.78
8.0.00.0050.01216.67
7.4.330.0050.00015.55
7.4.320.0030.00316.38
7.4.300.0080.00016.55
7.4.290.0030.00316.55
7.4.280.0030.00316.39
7.4.270.0070.00016.43
7.4.260.0000.00816.28
7.4.250.0000.00716.39
7.4.240.0040.00416.51
7.4.230.0000.00616.27
7.4.220.0040.00416.60
7.4.210.0030.01016.52
7.4.200.0040.00416.53
7.4.160.0090.00716.55
7.4.150.0060.01217.40
7.4.140.0100.00617.86
7.4.130.0150.00316.39
7.4.120.0090.01116.47
7.4.110.0060.01116.42
7.4.100.0070.01016.55
7.4.90.0000.01716.24
7.4.80.0120.00919.39
7.4.70.0110.00716.51
7.4.60.0130.00316.57
7.4.50.0110.00716.46
7.4.40.0040.01116.53
7.4.00.0040.01115.06
7.3.330.0020.00213.11
7.3.320.0060.00013.22
7.3.310.0050.00316.14
7.3.300.0070.00016.32
7.3.290.0030.00316.24
7.3.280.0070.00816.21
7.3.270.0110.00617.40
7.3.260.0150.01316.38
7.3.240.0080.01116.41
7.3.230.0100.00616.32
7.3.210.0140.00316.25
7.3.200.0100.00616.34
7.3.190.0160.00016.20
7.3.180.0130.00316.14
7.3.170.0070.01416.59
7.3.160.0000.01516.22
7.2.330.0030.01416.40
7.2.320.0140.00416.63
7.2.310.0110.01116.42
7.2.300.0140.00916.41
7.2.290.0150.00316.53
7.2.110.0100.00316.32
7.2.60.0100.00316.75
7.2.20.0000.01519.45
7.2.10.0090.01119.33
7.2.00.0080.01119.21
7.1.200.0080.00415.47
7.1.140.0000.01318.39
7.1.130.0070.01018.16
7.1.120.0070.00718.29
7.1.110.0110.00617.57
7.1.100.0030.01317.92
7.1.90.0100.00717.99
7.1.80.0140.00418.09
7.1.70.0030.01017.04
7.1.60.0110.01535.15
7.1.50.0150.01134.81
7.1.40.0170.01034.44
7.1.30.0170.01434.48
7.1.20.0200.00734.51
7.1.10.0030.00916.50
7.1.00.0090.00916.63

preferences:
56.9 ms | 401 KiB | 5 Q