3v4l.org

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

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.0100.00618.31
8.3.50.0120.00318.06
8.3.40.0040.01118.46
8.3.30.0070.00718.54
8.3.20.0040.00420.18
8.3.10.0040.00423.64
8.3.00.0040.00419.53
8.2.180.0140.00718.30
8.2.170.0070.00722.96
8.2.160.0040.01118.96
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00421.06
8.2.110.0060.00322.13
8.2.100.0080.00317.63
8.2.90.0030.00517.63
8.2.80.0030.00518.48
8.2.70.0000.00817.80
8.2.60.0050.00317.68
8.2.50.0040.00418.10
8.2.40.0070.00020.59
8.2.30.0040.00419.08
8.2.20.0040.00417.94
8.2.10.0000.00718.02
8.2.00.0000.00718.09
8.1.280.0140.00025.92
8.1.270.0030.00520.27
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00422.19
8.1.230.0120.00019.07
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.00
8.1.190.0060.00317.11
8.1.180.0030.00618.10
8.1.170.0000.00818.58
8.1.160.0040.00418.67
8.1.150.0000.00720.26
8.1.140.0040.00417.44
8.1.130.0080.00018.96
8.1.120.0030.00517.21
8.1.110.0050.00217.21
8.1.100.0030.00617.21
8.1.90.0000.00717.20
8.1.80.0040.00417.31
8.1.70.0100.00017.28
8.1.60.0050.00317.51
8.1.50.0050.00217.46
8.1.40.0000.00817.40
8.1.30.0000.00817.49
8.1.20.0030.00517.49
8.1.10.0060.00317.39
8.1.00.0030.00617.17
8.0.300.0040.00419.64
8.0.290.0070.00016.58
8.0.280.0000.00718.32
8.0.270.0030.00317.14
8.0.260.0040.00416.68
8.0.250.0070.00016.74
8.0.240.0090.00016.70
8.0.230.0040.00416.65
8.0.220.0030.00616.57
8.0.210.0040.00416.75
8.0.200.0030.00516.83
8.0.190.0030.00516.88
8.0.180.0030.00516.76
8.0.170.0030.00616.69
8.0.160.0040.00416.77
8.0.150.0070.00016.71
8.0.140.0050.00216.60
8.0.130.0060.00013.22
8.0.120.0040.00416.78
8.0.110.0000.00716.78
8.0.100.0000.00816.62
8.0.90.0000.00716.54
8.0.80.0000.01416.73
8.0.70.0000.00716.74
8.0.60.0040.00416.82
8.0.50.0070.00016.73
8.0.30.0160.00216.89
8.0.20.0110.00917.40
8.0.10.0000.00716.83
8.0.00.0100.00816.62
7.4.330.0020.00215.55
7.4.320.0030.00316.38
7.4.300.0030.00316.40
7.4.290.0030.00316.37
7.4.280.0040.00416.46
7.4.270.0070.00016.41
7.4.260.0000.00716.51
7.4.250.0040.00416.41
7.4.240.0000.00816.54
7.4.230.0020.00516.54
7.4.220.0050.00316.46
7.4.210.0060.00716.52
7.4.200.0000.00716.34
7.4.160.0090.00716.32
7.4.150.0140.00317.40
7.4.140.0090.01017.86
7.4.130.0140.00716.51
7.4.120.0090.00916.50
7.4.110.0030.01716.28
7.4.100.0070.01016.39
7.4.90.0060.01016.39
7.4.80.0030.01819.39
7.4.70.0090.01216.38
7.4.60.0030.01316.41
7.4.50.0060.01016.47
7.4.40.0120.00316.33
7.4.00.0060.01114.72
7.3.330.0000.00513.03
7.3.320.0000.00513.31
7.3.310.0070.00016.20
7.3.300.0030.00316.24
7.3.290.0030.00316.29
7.3.280.0080.00916.23
7.3.270.0090.00917.40
7.3.260.0120.00716.24
7.3.240.0080.00916.43
7.3.230.0160.00316.25
7.3.210.0100.00716.38
7.3.200.0130.00616.24
7.3.190.0100.00716.42
7.3.180.0120.00316.23
7.3.170.0030.01716.38
7.3.160.0060.01016.32
7.2.330.0060.01916.74
7.2.320.0060.01316.57
7.2.310.0070.01416.67
7.2.300.0080.01316.42
7.2.290.0180.00416.70
7.2.60.0000.01216.70
7.2.20.0040.01119.32
7.2.10.0080.00819.17
7.2.00.0070.00719.33
7.1.200.0030.00815.40
7.1.140.0110.00318.38
7.1.130.0030.01018.50
7.1.120.0040.01518.47
7.1.110.0120.00617.38
7.1.100.0030.01017.88
7.1.90.0090.00617.68
7.1.80.0030.00918.08
7.1.70.0030.01317.20
7.1.60.0190.00635.07
7.1.50.0110.01434.50
7.1.40.0170.01734.26
7.1.30.0210.01534.49
7.1.20.0200.01434.72
7.1.10.0030.01316.61
7.1.00.0030.00916.65

preferences:
34.52 ms | 400 KiB | 5 Q