3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET['user'] = null; $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.0140.00716.49
8.3.50.0090.00918.30
8.3.40.0040.01118.56
8.3.30.0060.00818.88
8.3.20.0100.00320.34
8.3.10.0040.00423.45
8.3.00.0000.00819.26
8.2.180.0180.00018.29
8.2.170.0130.00322.96
8.2.160.0130.00322.26
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00917.50
8.2.110.0030.00721.08
8.2.100.0060.00617.84
8.2.90.0080.00017.90
8.2.80.0040.00419.11
8.2.70.0000.00818.04
8.2.60.0000.00718.05
8.2.50.0040.00418.10
8.2.40.0000.00720.59
8.2.30.0070.00020.56
8.2.20.0000.00717.67
8.2.10.0000.00818.18
8.2.00.0040.00418.10
8.1.280.0090.00925.92
8.1.270.0030.00523.97
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00322.01
8.1.230.0000.01220.97
8.1.220.0040.00417.78
8.1.210.0080.00018.77
8.1.200.0000.00817.36
8.1.190.0040.00717.13
8.1.180.0040.00418.10
8.1.170.0000.00818.66
8.1.160.0040.00422.12
8.1.150.0070.00018.89
8.1.140.0050.00319.48
8.1.130.0000.00717.61
8.1.120.0040.00417.44
8.1.110.0050.00217.33
8.1.100.0000.00717.39
8.1.90.0000.00717.42
8.1.80.0040.00417.32
8.1.70.0000.00717.44
8.1.60.0040.00417.55
8.1.50.0000.00717.45
8.1.40.0030.00517.52
8.1.30.0030.00517.58
8.1.20.0000.00717.54
8.1.10.0040.00417.55
8.1.00.0070.00017.48
8.0.300.0030.00620.21
8.0.290.0050.00316.75
8.0.280.0040.00418.44
8.0.270.0040.00417.36
8.0.260.0030.00317.28
8.0.250.0000.00716.95
8.0.240.0040.00416.92
8.0.230.0000.00717.02
8.0.220.0030.00316.85
8.0.210.0040.00416.77
8.0.200.0000.00716.85
8.0.190.0000.00916.91
8.0.180.0070.00016.89
8.0.170.0040.00416.77
8.0.160.0000.00816.94
8.0.150.0000.00816.82
8.0.140.0050.00316.80
8.0.130.0000.00613.33
8.0.120.0060.00316.85
8.0.110.0050.00316.77
8.0.100.0000.00716.92
8.0.90.0040.00416.76
8.0.80.0030.01016.83
8.0.70.0040.00416.75
8.0.60.0050.00216.66
8.0.50.0000.00716.73
8.0.30.0110.00417.21
8.0.20.0090.00917.40
8.0.10.0040.00417.05
8.0.00.0050.01216.76
7.4.330.0060.00015.15
7.4.320.0030.00316.50
7.4.300.0000.00616.51
7.4.290.0000.00816.51
7.4.280.0040.00716.50
7.4.270.0000.00816.46
7.4.260.0060.00316.55
7.4.250.0000.00716.55
7.4.240.0030.00316.50
7.4.230.0000.00716.41
7.4.220.0090.00816.54
7.4.210.0060.00916.64
7.4.200.0000.00716.48
7.4.160.0150.00016.32
7.4.150.0130.00417.40
7.4.140.0130.00717.86
7.4.130.0080.00916.51
7.4.120.0120.00716.47
7.4.110.0160.00716.58
7.4.100.0190.00416.48
7.4.90.0120.01116.45
7.4.80.0110.00619.39
7.4.70.0100.01016.45
7.4.60.0090.00916.48
7.4.50.0060.00316.58
7.4.40.0150.00816.32
7.4.30.0060.01616.39
7.4.00.0070.01014.68
7.3.330.0050.00013.10
7.3.320.0000.00513.19
7.3.310.0000.00716.12
7.3.300.0040.00416.25
7.3.290.0000.00716.26
7.3.280.0090.00916.28
7.3.270.0070.01117.40
7.3.260.0090.00916.61
7.3.250.0100.00716.41
7.3.240.0060.01316.41
7.3.230.0130.01016.47
7.3.210.0090.00916.34
7.3.200.0130.00316.32
7.3.190.0080.00816.39
7.3.180.0110.01216.47
7.3.170.0100.00616.46
7.3.160.0030.01316.27
7.3.120.0160.00315.04
7.3.110.0070.01114.75
7.3.100.0080.00814.71
7.3.90.0080.00314.79
7.3.80.0080.00314.59
7.3.70.0040.01114.91
7.3.60.0000.01714.79
7.3.50.0040.00414.68
7.3.40.0060.00914.89
7.3.30.0070.00714.98
7.3.20.0040.00816.75
7.3.10.0100.00716.57
7.3.00.0030.00716.66
7.2.330.0090.00916.78
7.2.320.0120.00616.25
7.2.310.0030.01416.56
7.2.300.0000.01816.40
7.2.290.0030.01516.77
7.2.250.0060.01315.07
7.2.240.0070.01014.85
7.2.230.0060.00614.93
7.2.220.0060.00915.28
7.2.210.0060.01015.25
7.2.200.0110.00014.70
7.2.190.0080.00414.93
7.2.180.0120.00014.96
7.2.170.0060.00915.23
7.2.60.0960.01014.95
7.2.00.0030.00719.36
7.1.330.0070.00715.82
7.1.320.0040.00815.94
7.1.310.0060.00916.10
7.1.300.0040.00715.62
7.1.290.0130.00315.58
7.1.280.0090.00315.89
7.1.270.0100.00715.75
7.1.260.0000.00915.85
7.1.200.0090.00315.80
7.1.100.0030.00917.98
7.1.70.0000.01017.13
7.1.60.0090.01519.43
7.1.50.0100.01416.58
7.1.00.0000.08022.41
7.0.200.0290.00314.66
7.0.60.0070.08319.95
7.0.50.0070.06717.86
7.0.40.0100.03720.04
7.0.30.0230.03720.20
7.0.20.0230.04320.19
7.0.10.0070.04020.34
7.0.00.0200.04320.19
5.6.280.0030.03720.98
5.6.210.0070.03720.54
5.6.200.0100.08018.30
5.6.190.0100.08720.34
5.6.180.0430.06720.67
5.6.170.0230.08320.48
5.6.160.0070.08320.71
5.6.150.0070.04018.28
5.6.140.0070.04018.21
5.6.130.0100.05718.23
5.6.120.0070.08321.02
5.6.110.0030.08320.98
5.6.100.0070.08321.04
5.6.90.0070.05321.03
5.6.80.0070.06320.35
5.5.350.0330.07720.39
5.5.340.0070.08018.03
5.5.330.0100.08320.57
5.5.320.0170.04020.34
5.5.310.0130.05020.37
5.5.300.0000.07018.09
5.5.290.0030.04718.07
5.5.280.0130.08720.84
5.5.270.0100.07720.88
5.5.260.0130.06720.86
5.5.250.0070.05320.65
5.5.240.0100.07720.36
5.4.450.0700.07019.36
5.4.440.0630.07719.38
5.4.430.0730.06019.59
5.4.420.0530.08719.47
5.4.410.0730.05319.00
5.4.400.0530.06718.99
5.4.390.0470.07319.30
5.4.380.0630.05019.23
5.4.370.0630.07319.38
5.4.360.0230.05019.31
5.4.350.0470.05018.87
5.4.340.0530.07719.01
5.4.320.0200.07319.13
5.4.310.0100.06318.99
5.4.300.0270.04019.30
5.4.290.0300.06718.84
5.4.280.0770.06019.28
5.4.270.0130.05719.38
5.4.260.0270.04719.26
5.4.250.0170.05719.37
5.4.240.0470.07019.00
5.4.230.0170.05319.37
5.4.220.0400.05719.25
5.4.210.0770.06719.25
5.4.200.0830.07318.83
5.4.190.0170.07319.00
5.4.180.0570.05319.13
5.4.170.0230.07019.21
5.4.160.0230.06319.12
5.4.150.0200.06718.96
5.4.140.0170.07316.49
5.4.130.0330.05716.52
5.4.120.0370.05316.27
5.4.110.0200.06716.60
5.4.100.0170.06316.62
5.4.90.0270.06316.28
5.4.80.0270.04716.41
5.4.70.0300.04316.61
5.4.60.0130.06016.51
5.4.50.0200.05016.45
5.4.40.0130.05716.55
5.4.30.0430.06016.40
5.4.20.0500.07016.39
5.4.10.0300.06016.16
5.4.00.0030.07315.93

preferences:
65.71 ms | 400 KiB | 5 Q