3v4l.org

run code in 300+ PHP versions simultaneously
<?php // 获取user参数的值(如果为空,则用'nobody') $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.130.0000.00818.77
8.3.120.0080.00020.68
8.3.110.0100.01018.55
8.3.100.0170.00316.61
8.3.90.0160.00326.77
8.3.80.0030.00618.43
8.3.70.0120.00616.63
8.3.60.0110.00418.24
8.3.50.0120.00721.16
8.3.40.0040.01118.63
8.3.30.0040.01118.70
8.3.20.0040.00420.19
8.3.10.0040.00423.66
8.3.00.0040.00423.61
8.2.250.0040.01118.36
8.2.240.0030.00618.82
8.2.230.0000.00920.94
8.2.220.0150.00337.54
8.2.210.0160.00326.77
8.2.200.0060.00316.75
8.2.190.0110.01116.58
8.2.180.0040.01416.75
8.2.170.0190.00019.04
8.2.160.0090.00622.96
8.2.150.0020.00525.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0070.00020.88
8.2.110.0060.00320.50
8.2.100.0120.00017.91
8.2.90.0000.00817.97
8.2.80.0000.00919.29
8.2.70.0040.00418.04
8.2.60.0040.00418.34
8.2.50.0040.00418.22
8.2.40.0030.00519.78
8.2.30.0040.00418.00
8.2.20.0050.00317.68
8.2.10.0040.00418.03
8.2.00.0040.00418.12
8.1.300.0150.00419.64
8.1.290.0030.00630.84
8.1.280.0130.00625.92
8.1.270.0000.00723.99
8.1.260.0000.00826.35
8.1.250.0140.00328.09
8.1.240.0080.00319.13
8.1.230.0070.00422.69
8.1.220.0000.00817.74
8.1.210.0000.00818.79
8.1.200.0100.00017.36
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0030.00618.59
8.1.160.0040.00418.80
8.1.150.0040.00418.88
8.1.140.0080.00019.45
8.1.130.0070.00019.05
8.1.120.0000.00717.37
8.1.110.0030.00417.46
8.1.100.0040.00417.47
8.1.90.0030.00617.36
8.1.80.0030.00617.49
8.1.70.0030.00317.36
8.1.60.0000.00717.63
8.1.50.0030.00617.53
8.1.40.0080.00017.41
8.1.30.0040.00417.54
8.1.20.0030.00617.59
8.1.10.0040.00417.54
8.1.00.0060.00317.37
8.0.300.0000.00721.90
8.0.290.0080.00016.75
8.0.280.0030.00318.30
8.0.270.0080.00017.31
8.0.260.0030.00317.26
8.0.250.0030.00316.91
8.0.240.0040.00417.08
8.0.230.0030.00316.91
8.0.220.0000.00716.83
8.0.210.0030.00316.97
8.0.200.0080.00316.98
8.0.190.0050.00316.95
8.0.180.0030.00916.88
8.0.170.0000.00816.90
8.0.160.0040.00416.97
8.0.150.0050.00316.95
8.0.140.0000.00716.79
8.0.130.0030.00313.41
8.0.120.0080.00016.99
8.0.110.0040.00416.94
8.0.100.0000.00816.82
8.0.90.0000.00816.84
8.0.80.0030.01316.93
8.0.70.0000.00716.83
8.0.60.0040.00417.02
8.0.50.0000.00716.76
8.0.30.0120.00317.27
8.0.20.0080.01417.40
8.0.10.0040.00416.96
8.0.00.0180.00516.79
7.4.330.0030.00316.71
7.4.320.0030.00316.58
7.4.300.0020.00516.64
7.4.290.0030.00316.50
7.4.280.0030.00616.43
7.4.270.0000.00716.50
7.4.260.0070.00016.60
7.4.250.0050.00316.55
7.4.240.0030.00316.50
7.4.230.0070.00016.66
7.4.220.0110.00716.62
7.4.210.0040.01516.60
7.4.200.0070.00016.59
7.4.160.0110.00616.39
7.4.150.0060.01217.40
7.4.140.0130.01017.86
7.4.130.0080.01116.52
7.4.120.0110.00816.54
7.4.110.0110.01116.55
7.4.100.0130.01016.58
7.4.90.0110.00716.55
7.4.80.0070.01119.39
7.4.70.0060.01016.39
7.4.60.0030.01316.63
7.4.50.0120.00016.64
7.4.40.0090.00916.32
7.4.30.0100.00616.41
7.4.10.0070.01115.01
7.4.00.0090.00815.11
7.3.330.0060.00013.06
7.3.320.0000.00813.16
7.3.310.0040.00416.41
7.3.300.0060.00016.17
7.3.290.0000.00616.40
7.3.280.0090.00716.43
7.3.270.0070.01717.40
7.3.260.0030.01316.51
7.3.250.0110.00916.32
7.3.240.0030.01516.57
7.3.230.0130.00316.50
7.3.210.0090.00916.61
7.3.200.0070.01016.62
7.3.190.0060.01316.49
7.3.180.0090.00616.29
7.3.170.0080.01116.44
7.3.160.0100.00616.44
7.3.130.0090.00914.97
7.3.120.0040.01414.80
7.3.110.0160.00315.00
7.3.100.0060.00614.80
7.3.90.0070.01014.64
7.3.80.0080.00015.09
7.3.70.0000.00914.94
7.3.60.0080.00414.92
7.3.50.0110.00414.73
7.3.40.0070.00714.75
7.3.30.0040.01114.93
7.3.20.0030.01016.73
7.3.10.0040.00816.53
7.3.00.0070.00816.70
7.2.330.0160.00316.64
7.2.320.0090.00616.55
7.2.310.0120.01216.34
7.2.300.0130.01016.23
7.2.290.0040.01116.37
7.2.260.0060.01215.05
7.2.250.0040.01515.16
7.2.240.0090.00615.16
7.2.230.0040.01215.16
7.2.220.0080.00815.20
7.2.210.0040.01214.97
7.2.200.0050.00415.13
7.2.190.0000.01114.66
7.2.180.0000.01315.10
7.2.170.0030.00915.00
7.2.160.0000.01414.99
7.2.150.0030.00916.88
7.2.140.0070.01016.86
7.2.130.0040.01216.74
7.2.120.0060.00816.93
7.2.110.0100.00516.81
7.2.100.0060.01116.91
7.2.90.0020.01116.85
7.2.80.0080.00816.83
7.2.70.0080.00716.91
7.2.60.0060.00616.79
7.2.50.0080.00616.91
7.2.40.0030.01116.74
7.2.30.0100.00716.82
7.2.20.0110.00716.72
7.2.10.0050.00916.66
7.2.00.0080.00716.86
7.1.330.0120.00315.57
7.1.320.0040.00415.73
7.1.310.0040.01115.54
7.1.300.0030.01015.72
7.1.290.0000.01215.54
7.1.280.0060.00615.72
7.1.270.0030.01015.78
7.1.260.0030.01015.80
7.1.250.0070.00715.76
7.1.240.0050.00915.70
7.1.230.0070.00515.75
7.1.220.0060.00715.73
7.1.210.0040.00815.50
7.1.200.0060.00615.59
7.1.190.0050.00615.78
7.1.180.0020.01015.81
7.1.170.0050.00515.66
7.1.160.0050.00715.57
7.1.150.0110.00315.84
7.1.140.0100.00215.77
7.1.130.0050.00715.77
7.1.120.0050.01015.80
7.1.110.0030.01015.55
7.1.100.0050.00815.63
7.1.90.0350.00315.80
7.1.80.0170.00916.03
7.1.70.0180.00915.56
7.1.60.0240.00926.07
7.1.50.0410.00826.00
7.1.40.0220.01125.83
7.1.30.0240.00925.82
7.1.20.0250.00925.95
7.1.10.0160.00715.05
7.1.00.0140.00915.16
7.0.330.0060.00315.21
7.0.320.0050.00515.39
7.0.310.0020.00715.36
7.0.300.0060.00515.45
7.0.290.0030.01215.16
7.0.280.0070.00415.27
7.0.270.0050.00615.31
7.0.260.0060.00415.33
7.0.250.0050.00515.49
7.0.240.0070.00515.36
7.0.230.0290.00615.52
7.0.220.0220.00715.60
7.0.210.0220.00715.26
7.0.200.0200.00915.09
7.0.190.0230.01115.13
7.0.180.0150.00914.67
7.0.170.0220.00514.89
7.0.160.0250.00714.76
7.0.150.0140.00914.81
7.0.140.0140.00914.81
7.0.130.0140.00914.88
7.0.120.0130.00815.08
7.0.110.0140.00914.91
7.0.100.0140.00714.86
7.0.90.0140.00614.87
7.0.80.0120.01014.87
7.0.70.0130.00615.09
7.0.60.0120.00815.06
7.0.50.0120.01015.29
7.0.40.0140.00614.43
7.0.30.0160.00714.48
7.0.20.0090.01014.50
7.0.10.0110.00714.45
7.0.00.0130.00914.54
5.6.400.0100.00314.46
5.6.390.0000.01214.70
5.6.380.0050.00814.54
5.6.370.0020.00914.28
5.6.360.0050.00514.50
5.6.350.0070.00414.36
5.6.340.0050.00514.31
5.6.330.0050.00614.51
5.6.320.0100.00214.38
5.6.310.0070.00714.53
5.6.300.0090.03518.15
5.6.290.0100.03618.36
5.6.280.0090.03718.29
5.6.270.0040.04118.31
5.6.260.0100.03418.28
5.6.250.0070.03818.26
5.6.240.0120.03318.16
5.6.230.0080.03818.27
5.6.220.0120.03318.25
5.6.210.0090.03418.21
5.6.200.0090.03818.32
5.6.190.0110.03518.23
5.6.180.0060.04018.22
5.6.170.0120.03118.17
5.6.160.0110.03618.23
5.6.150.0080.04118.12
5.6.140.0100.04018.39
5.6.130.0060.04318.17
5.6.120.0080.03718.35
5.6.110.0100.03518.21
5.6.100.0070.03718.28
5.6.90.0060.03518.19
5.6.80.0040.03517.79
5.6.70.0100.03317.84
5.6.60.0080.03617.86
5.6.50.0070.03417.78
5.6.40.0070.03517.75
5.6.30.0080.03517.81
5.6.20.0050.03617.83
5.6.10.0070.03517.93
5.6.00.0110.03117.76
5.5.380.0130.03715.86
5.5.370.0090.03915.85
5.5.360.0090.04215.84
5.5.350.0070.04215.85
5.5.340.0040.04816.21
5.5.330.0070.04316.24
5.5.320.0070.04216.25
5.5.310.0100.04016.21
5.5.300.0100.04916.19
5.5.290.0100.04716.29
5.5.280.0090.04216.21
5.5.270.0080.04416.25
5.5.260.0040.04516.30
5.5.250.0090.04116.04
5.5.240.0070.04015.83
5.5.230.0040.04415.83
5.5.220.0060.04115.76
5.5.210.0070.03815.83
5.5.200.0090.03815.77
5.5.190.0040.04315.80
5.5.180.0040.04415.78
5.5.170.0000.00811.18
5.5.160.0100.04215.70
5.5.150.0070.03815.77
5.5.140.0060.04015.81
5.5.130.0090.04115.75
5.5.120.0060.04015.71
5.5.110.0120.03515.65
5.5.100.0090.03915.63
5.5.90.0110.03515.71
5.5.80.0100.03615.71
5.5.70.0100.03915.69
5.5.60.0070.03915.69
5.5.50.0060.04415.70
5.5.40.0090.03715.63
5.5.30.0060.03915.67
5.5.20.0110.03815.65
5.5.10.0100.03715.61
5.5.00.0090.03715.67
5.4.450.0080.04517.23
5.4.440.0110.04217.36
5.4.430.0070.04017.30
5.4.420.0060.04117.20
5.4.410.0070.03917.06
5.4.400.0070.03716.98
5.4.390.0080.04017.08
5.4.380.0120.03417.03
5.4.370.0070.03917.02
5.4.360.0020.05017.03
5.4.350.0070.03816.99
5.4.340.0050.04317.03
5.4.330.0050.00011.18
5.4.320.0050.04216.99
5.4.310.0070.03917.01
5.4.300.0080.04217.03
5.4.290.0110.03617.02
5.4.280.0100.03917.03
5.4.270.0080.03917.03
5.4.260.0110.03416.99
5.4.250.0100.03616.97
5.4.240.0130.03316.96
5.4.230.0100.04316.96
5.4.220.0110.03917.02
5.4.210.0080.04117.08
5.4.200.0050.04116.98
5.4.190.0050.04217.09
5.4.180.0070.03917.07
5.4.170.0060.03916.98
5.4.160.0060.03817.09
5.4.150.0100.04116.97
5.4.140.0120.03315.11
5.4.130.0060.03615.21
5.4.120.0080.03715.14
5.4.110.0050.03915.23
5.4.100.0050.03815.18
5.4.90.0070.03615.15
5.4.80.0040.03715.21
5.4.70.0060.03815.17
5.4.60.0060.04115.19
5.4.50.0080.03415.09
5.4.40.0080.03615.19
5.4.30.0050.03915.08
5.4.20.0070.03715.10
5.4.10.0040.04115.07
5.4.00.0100.03414.63
5.3.290.0060.04113.80
5.3.280.0080.03713.77
5.3.270.0040.04413.80
5.3.260.0040.04213.75
5.3.250.0060.03913.85
5.3.240.0090.04313.73
5.3.230.0040.04013.78
5.3.220.0040.04113.78
5.3.210.0060.04013.72
5.3.200.0070.03613.79
5.3.190.0070.03913.84
5.3.180.0090.03613.78
5.3.170.0060.04013.77
5.3.160.0040.04213.72
5.3.150.0070.03813.73
5.3.140.0050.03913.64
5.3.130.0050.04113.74
5.3.120.0090.03813.72
5.3.110.0060.03913.78
5.3.100.0060.04013.39
5.3.90.0070.03613.34
5.3.80.0080.03713.33
5.3.70.0060.03713.34
5.3.60.0050.03713.31
5.3.50.0100.03213.28
5.3.40.0110.03313.33
5.3.30.0040.03713.25
5.3.20.0040.03813.14
5.3.10.0060.03513.09
5.3.00.0090.03413.05
5.2.170.0070.02911.29
5.2.160.0040.03211.21
5.2.150.0050.03111.10
5.2.140.0050.03011.28
5.2.130.0050.03011.04
5.2.120.0030.03111.26
5.2.110.0050.02911.20
5.2.100.0040.02911.21
5.2.90.0070.02811.26
5.2.80.0100.02711.19
5.2.70.0060.02911.15
5.2.60.0060.03511.21
5.2.50.0030.03711.13
5.2.40.0070.02711.12
5.2.30.0040.03610.98
5.2.20.0060.02911.00
5.2.10.0070.03211.06
5.2.00.0040.03010.91
5.1.60.0020.02810.48
5.1.50.0050.02510.36
5.1.40.0050.02410.31
5.1.30.0060.02710.59
5.1.20.0030.02910.61
5.1.10.0040.02610.45
5.1.00.0060.02510.56
5.0.50.0030.0229.26
5.0.40.0030.0209.24
5.0.30.0070.0299.09
5.0.20.0030.0239.04
5.0.10.0070.0189.10
5.0.00.0040.0339.04
4.4.90.0030.0167.46
4.4.80.0030.0197.46
4.4.70.0030.0177.46
4.4.60.0030.0157.46
4.4.50.0010.0187.46
4.4.40.0050.0247.46
4.4.30.0050.0147.46
4.4.20.0070.0137.46
4.4.10.0060.0137.46
4.4.00.0030.0247.46
4.3.110.0010.0187.46
4.3.100.0020.0177.46
4.3.90.0030.0187.46
4.3.80.0040.0267.46
4.3.70.0030.0167.46
4.3.60.0020.0197.46
4.3.50.0040.0147.46
4.3.40.0070.0227.46
4.3.30.0010.0207.47
4.3.20.0050.0167.47
4.3.10.0020.0187.48
4.3.00.0030.0177.48

preferences:
30.81 ms | 403 KiB | 5 Q