3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = $_GET['user'] ?? 'nobody'; $username = isset($_GET['user']) ? $_GET['user'] : 'nobody'; echo $username;

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.00916.63
8.3.50.0170.00521.99
8.3.40.0140.00018.68
8.3.30.0060.00918.67
8.3.20.0040.00420.16
8.3.10.0080.00023.46
8.3.00.0080.00019.38
8.2.180.0120.00618.03
8.2.170.0120.00622.96
8.2.160.0070.01021.96
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0100.00317.75
8.2.110.0100.01021.00
8.2.100.0060.00617.72
8.2.90.0050.00319.17
8.2.80.0050.00317.97
8.2.70.0050.00519.34
8.2.60.0030.00617.93
8.2.50.0070.00018.10
8.2.40.0040.00420.25
8.2.30.0070.00020.73
8.2.20.0030.00517.74
8.2.10.0040.00418.13
8.2.00.0040.00418.17
8.1.280.0140.00325.92
8.1.270.0040.00423.98
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00321.32
8.1.230.0040.00720.26
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0060.00317.22
8.1.180.0000.00918.10
8.1.170.0080.00018.57
8.1.160.0040.00422.14
8.1.150.0000.00718.79
8.1.140.0000.00919.62
8.1.130.0030.00317.70
8.1.120.0030.00317.42
8.1.110.0000.00717.46
8.1.100.0000.00717.48
8.1.90.0070.00017.36
8.1.80.0050.00317.37
8.1.70.0040.00417.44
8.1.60.0090.00017.64
8.1.50.0070.00017.48
8.1.40.0060.00317.40
8.1.30.0000.00817.62
8.1.20.0000.00817.70
8.1.10.0000.00717.49
8.1.00.0000.00717.39
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0030.00518.49
8.0.270.0000.00717.25
8.0.260.0060.00017.27
8.0.250.0070.00016.88
8.0.240.0040.00416.82
8.0.230.0030.00516.93
8.0.220.0050.00216.80
8.0.210.0070.00016.89
8.0.200.0050.00216.90
8.0.190.0030.00516.95
8.0.180.0070.00016.93
8.0.170.0070.00016.96
8.0.160.0050.00316.81
8.0.150.0000.00716.93
8.0.140.0000.00716.71
8.0.130.0000.00513.20
8.0.120.0040.00416.89
8.0.110.0000.00716.90
8.0.100.0040.00416.95
8.0.90.0000.00816.86
8.0.80.0070.00716.86
8.0.70.0060.00316.70
8.0.60.0040.00416.96
8.0.50.0000.00716.82
8.0.30.0090.01216.96
8.0.20.0110.01017.40
8.0.10.0000.00717.00
8.0.00.0080.00916.76
7.4.330.0050.00015.08
7.4.320.0000.00716.60
7.4.300.0000.00716.56
7.4.290.0040.00416.59
7.4.280.0060.00316.50
7.4.270.0040.00416.46
7.4.260.0070.00016.39
7.4.250.0080.00016.39
7.4.240.0030.00316.53
7.4.230.0000.00716.34
7.4.220.0100.00716.54
7.4.210.0060.00916.54
7.4.200.0090.00016.62
7.4.160.0090.00616.57
7.4.150.0070.01017.40
7.4.140.0170.00317.86
7.4.130.0090.00816.50
7.4.120.0070.01016.43
7.4.110.0120.00616.52
7.4.100.0120.00816.61
7.4.90.0060.01016.61
7.4.80.0050.01219.39
7.4.70.0110.00516.49
7.4.60.0060.01116.64
7.4.50.0080.00016.36
7.4.40.0030.01516.54
7.4.30.0090.01216.57
7.4.00.0070.01015.09
7.3.330.0000.00513.02
7.3.320.0020.00213.02
7.3.310.0000.00716.23
7.3.300.0070.00016.07
7.3.290.0000.00716.11
7.3.280.0060.01116.29
7.3.270.0100.00917.40
7.3.260.0070.01116.63
7.3.250.0120.00516.30
7.3.240.0090.00816.49
7.3.230.0030.01316.47
7.3.210.0120.00616.50
7.3.200.0110.00616.56
7.3.190.0090.01616.27
7.3.180.0160.00816.27
7.3.170.0080.00816.30
7.3.160.0100.00716.34
7.3.120.0040.00914.86
7.3.110.0030.01514.92
7.3.100.0050.01014.86
7.3.90.0090.00715.00
7.3.80.0060.00314.83
7.3.70.0120.00514.63
7.3.60.0040.00814.81
7.3.50.0090.00614.59
7.3.40.0030.01114.79
7.3.30.0050.01114.89
7.3.20.0000.01416.63
7.3.10.0050.00816.59
7.3.00.0060.00816.74
7.2.330.0070.01016.52
7.2.320.0120.00916.55
7.2.310.0110.00716.69
7.2.300.0100.01016.70
7.2.290.0200.00316.22
7.2.250.0050.01315.06
7.2.240.0070.01214.86
7.2.230.0070.00715.02
7.2.220.0020.01215.09
7.2.210.0070.00614.93
7.2.200.0060.01014.58
7.2.190.0100.00314.81
7.2.180.0070.00715.02
7.2.170.0110.00514.86
7.2.60.0060.01016.68
7.2.00.0040.01119.35
7.1.330.0050.01015.82
7.1.320.0080.00515.66
7.1.310.0080.00715.86
7.1.300.0050.00715.71
7.1.290.0090.00415.79
7.1.280.0080.00715.67
7.1.270.0020.01215.64
7.1.260.0080.00515.72
7.1.200.0030.00715.78
7.1.100.0030.01018.13
7.1.70.0000.00716.84
7.1.60.0140.01119.43
7.1.50.0100.01416.90
7.1.00.0030.07322.56
7.0.200.0250.00714.64
7.0.60.0170.07019.90
7.0.50.0000.04717.74
7.0.40.0100.03720.09
7.0.30.0270.03720.01
7.0.20.0170.04720.00
7.0.10.0030.04320.33
7.0.00.0100.07720.11
5.6.280.0000.03721.04
5.6.210.0030.04020.66
5.6.200.0070.07018.27
5.6.190.0030.05020.77
5.6.180.0270.06720.48
5.6.170.0330.07320.57
5.6.160.0030.07320.44
5.6.150.0000.08318.16
5.6.140.0070.08318.23
5.6.130.0030.05318.12
5.6.120.0030.08020.99
5.6.110.0070.09021.00
5.6.100.0100.05020.88
5.6.90.0070.04721.10
5.6.80.0100.07720.38
5.5.350.0100.05320.44
5.5.340.0070.04017.92
5.5.330.0070.08020.33
5.5.320.0200.03720.22
5.5.310.0130.04720.48
5.5.300.0170.07018.07
5.5.290.0070.04317.95
5.5.280.0070.08720.73
5.5.270.0100.08320.75
5.5.260.0130.08020.86
5.5.250.0030.07020.61
5.5.240.0070.07720.15
5.4.450.0430.06319.59
5.4.440.0270.05319.63
5.4.430.0300.05319.16
5.4.420.0270.06019.47
5.4.410.0200.05719.50
5.4.400.0170.05319.26
5.4.390.0070.08319.30
5.4.380.0470.05019.23
5.4.370.0630.06719.26
5.4.360.0800.06719.15
5.4.350.0870.07319.16
5.4.340.0700.07019.26
5.4.320.0170.07319.01
5.4.310.0370.06719.26
5.4.300.0200.06719.06
5.4.290.0500.07019.05
5.4.280.0730.05719.25
5.4.270.0730.06319.36
5.4.260.0330.06719.26
5.4.250.0770.05719.22
5.4.240.0630.07018.97
5.4.230.0430.06318.88
5.4.220.0200.06719.05
5.4.210.0370.06719.21
5.4.200.0600.06019.25
5.4.190.0500.06019.04
5.4.180.0530.06019.25
5.4.170.0670.06719.27
5.4.160.0630.05019.09
5.4.150.0200.07019.26
5.4.140.0230.06716.38
5.4.130.0270.06016.39
5.4.120.0430.05716.36
5.4.110.0400.05316.61
5.4.100.0370.05716.60
5.4.90.0330.06316.21
5.4.80.0030.06716.59
5.4.70.0230.06316.25
5.4.60.0430.05316.62
5.4.50.0170.06316.43
5.4.40.0470.05016.62
5.4.30.0670.07016.50
5.4.20.0800.06316.51
5.4.10.0630.05716.40
5.4.00.0570.05715.75

preferences:
77.86 ms | 401 KiB | 5 Q