3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!function_exists('gravatar')) { function gravatar($user_id = false, $secure = false, $force = false) { // $CI =& get_instance(); $endpoint = 'http://gravatar.com/'; $secure_endpoint = 'https://secure.gravatar.com/'; $fallback = 'http://www.gravatar.com/avatar/00000000000000000000000000000000?d=mm&f=y'; $params = array( 's' => '250', // size 'd' => urlencode($fallback), // default (fallback) ); if (!$force) { if (!$user_id) { return $fallback; } } else { $params['f'] = 'y'; } // $email = $CI->members_model->gravatarEmail($user_id); $email = md5('test@example.com'); return ($secure ? $secure_endpoint : $endpoint) . 'avatar/' . $email . '?' . http_build_query($params); } } echo gravatar('0', true);

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.70.0090.01218.55
8.3.60.0070.00716.63
8.3.50.0130.00522.01
8.3.40.0110.00418.80
8.3.30.0100.00319.21
8.3.20.0030.00620.18
8.3.10.0080.00023.62
8.3.00.0070.00020.64
8.2.190.0070.00716.58
8.2.180.0140.00716.75
8.2.170.0000.01622.96
8.2.160.0100.00322.12
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.27
8.2.110.0060.00322.26
8.2.100.0070.00417.84
8.2.90.0090.00019.21
8.2.80.0000.00817.97
8.2.70.0000.00917.50
8.2.60.0090.00018.04
8.2.50.0060.00318.07
8.2.40.0040.00419.34
8.2.30.0000.00818.09
8.2.20.0000.00817.72
8.2.10.0070.00017.71
8.2.00.0030.00717.63
8.1.280.0120.00625.92
8.1.270.0080.00024.01
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00623.91
8.1.230.0110.00018.97
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0060.00317.36
8.1.190.0040.00417.30
8.1.180.0060.00318.10
8.1.170.0080.00018.64
8.1.160.0000.00821.94
8.1.150.0040.00418.65
8.1.140.0040.00417.42
8.1.130.0000.00717.75
8.1.120.0000.00717.41
8.1.110.0000.00717.50
8.1.100.0000.00717.39
8.1.90.0000.00717.36
8.1.80.0000.00717.46
8.1.70.0040.00417.34
8.1.60.0000.00817.61
8.1.50.0000.00817.38
8.1.40.0040.00417.45
8.1.30.0040.00417.65
8.1.20.0030.00517.60
8.1.10.0080.00017.58
8.1.00.0000.00817.40
8.0.300.0000.00818.77
8.0.290.0000.00717.18
8.0.280.0000.00718.42
8.0.270.0000.00717.23
8.0.260.0000.00816.83
8.0.250.0080.00016.93
8.0.240.0000.00716.99
8.0.230.0040.00416.88
8.0.220.0000.00716.90
8.0.210.0030.00316.96
8.0.200.0030.00317.01
8.0.190.0000.00816.95
8.0.180.0040.00716.93
8.0.170.0070.00016.81
8.0.160.0030.00516.93
8.0.150.0030.00416.80
8.0.140.0000.00716.85
8.0.130.0050.00013.42
8.0.120.0000.00816.86
8.0.110.0000.00716.86
8.0.100.0040.00416.79
8.0.90.0000.00716.88
8.0.80.0190.00416.88
8.0.70.0000.00716.79
8.0.60.0020.00516.79
8.0.50.0030.00516.73
8.0.30.0160.00517.08
8.0.20.0130.00717.40
8.0.10.0050.00216.84
8.0.00.0110.00816.77
7.4.330.0050.00015.09
7.4.320.0060.00016.52
7.4.300.0030.00316.48
7.4.290.0050.00216.52
7.4.280.0040.00416.62
7.4.270.0000.00716.63
7.4.260.0000.00816.44
7.4.250.0040.00416.56
7.4.240.0020.00516.56
7.4.230.0070.00016.52
7.4.220.0070.01116.58
7.4.210.0110.00516.58
7.4.200.0070.00016.55
7.4.190.0000.00816.59
7.4.160.0150.00616.56
7.4.150.0090.00917.40
7.4.140.0110.01117.86
7.4.130.0120.00616.49
7.4.120.0120.00516.54
7.4.110.0090.01216.41
7.4.100.0090.01516.53
7.4.90.0090.01516.52
7.4.80.0070.01016.45
7.4.70.0030.01316.66
7.4.60.0110.00616.35
7.4.50.0030.00516.39
7.4.40.0070.01122.77
7.4.30.0030.01316.48
7.4.00.0070.00714.87
7.3.330.0030.00313.32
7.3.320.0000.00513.31
7.3.310.0000.00716.29
7.3.300.0000.00716.18
7.3.290.0030.01016.38
7.3.280.0100.00816.29
7.3.270.0200.00317.40
7.3.260.0060.01216.55
7.3.250.0080.01016.50
7.3.240.0130.00316.34
7.3.230.0060.01016.39
7.3.210.0070.01016.53
7.3.200.0030.01319.39
7.3.190.0130.00416.57
7.3.180.0060.01516.63
7.3.170.0040.01216.38
7.3.160.0130.00316.31
7.3.120.0040.00814.84
7.2.330.0030.01316.63
7.2.320.0160.00016.39
7.2.310.0110.00716.73
7.2.300.0080.00816.64
7.2.290.0000.01616.79
7.2.110.0150.00616.65
7.2.60.0060.00617.02
7.2.00.0100.00019.41
7.1.200.0060.00915.84
7.1.100.0030.00817.87
7.1.70.0030.00616.96
7.1.60.0210.00319.22
7.1.50.0080.00417.02
7.1.00.0070.07322.54
7.0.200.0000.01016.48
7.0.140.0030.07322.09
7.0.60.0030.07019.84
7.0.50.0070.03717.87
7.0.40.0070.05020.24
7.0.30.0300.07320.30
7.0.20.0200.05320.16
7.0.10.0300.05720.26
7.0.00.0100.08020.24
5.6.210.0070.07020.67
5.6.200.0070.08018.15
5.6.190.0030.06020.61
5.6.180.0470.05320.57
5.6.170.0330.08020.44
5.6.160.0170.07720.52
5.6.150.0030.05318.15
5.6.140.0030.05318.21
5.6.130.0070.08318.26
5.6.120.0030.04021.12
5.6.110.0070.07321.11
5.6.100.0000.07321.01
5.6.90.0100.05720.96
5.6.80.0030.04320.43
5.6.70.4370.04320.47
5.5.350.0100.07720.50
5.5.340.0030.06718.04
5.5.330.0070.07720.37
5.5.320.0030.08020.36
5.5.310.0300.05320.24
5.5.300.0070.04017.97
5.5.290.0130.07318.09
5.5.280.0170.06720.74
5.5.270.0100.07320.87
5.5.260.0100.08020.87
5.5.250.0070.08020.69
5.5.240.0070.07020.16
5.4.450.0830.04019.46
5.4.440.0900.04719.17
5.4.430.0700.05019.40
5.4.420.0870.03719.46
5.4.410.1070.04319.30
5.4.400.0300.06318.81
5.4.390.0300.06018.73
5.4.380.0170.05718.70
5.4.370.0170.04718.53
5.4.360.0170.07018.57
5.4.350.0070.06018.65
5.4.340.0130.05018.73
5.4.320.0080.04212.50
5.4.310.0050.03812.50
5.4.300.0090.04212.50
5.4.290.0050.03912.49
5.4.280.0080.04812.39
5.4.270.0030.03912.39
5.4.260.0060.03812.40
5.4.250.0080.04412.39
5.4.240.0020.04112.39
5.4.230.0110.03312.39
5.4.220.0060.03612.38
5.4.210.0060.03512.38
5.4.200.0060.04712.39
5.4.190.0150.04912.38
5.4.180.0150.04512.38
5.4.170.0180.04112.39
5.4.160.0120.05012.39
5.4.150.0210.04912.38
5.4.140.0190.04412.07
5.4.130.0330.09012.05
5.4.120.0200.04312.01
5.4.110.0170.04512.01
5.4.100.0410.08012.00
5.4.90.0190.04012.01
5.4.80.0180.04112.01
5.4.70.0110.04612.00
5.4.60.0170.04912.00
5.4.50.0150.04312.00
5.4.40.0220.03911.98
5.4.30.0200.04411.98
5.4.20.0180.04111.98
5.4.10.0380.08511.98
5.4.00.0180.03911.48
5.3.290.0080.04612.80
5.3.280.0050.03912.71
5.3.270.0170.04812.72
5.3.260.0220.05012.72
5.3.250.0210.04512.72
5.3.240.0220.07212.72
5.3.230.0170.04412.71
5.3.220.0170.04312.68
5.3.210.0110.05012.68
5.3.200.0190.04612.68
5.3.190.0170.04912.68
5.3.180.0160.04412.67
5.3.170.0160.04412.67
5.3.160.0140.04712.68
5.3.150.0170.04312.67
5.3.140.0130.04912.66
5.3.130.0180.04412.66
5.3.120.0200.04212.66
5.3.110.0190.04912.65
5.3.100.0160.04512.12
5.3.90.0170.04212.10
5.3.80.0180.04312.09
5.3.70.0180.04212.09
5.3.60.0150.04712.07
5.3.50.0180.04512.02
5.3.40.0190.04412.02
5.3.30.0160.04312.00
5.3.20.0160.04311.77
5.3.10.0140.04211.72
5.3.00.0200.06611.71
5.2.170.0100.0379.22
5.2.160.0130.0379.21
5.2.150.0110.0379.21
5.2.140.0130.0359.21
5.2.130.0130.0359.17
5.2.120.0100.0389.17
5.2.110.0170.0339.18
5.2.100.0390.0729.18
5.2.90.0150.0349.18
5.2.80.0370.0769.17
5.2.70.0150.0339.18
5.2.60.0080.0409.12
5.2.50.0130.0349.09
5.2.40.0080.0389.07
5.2.30.0140.0329.04
5.2.20.0140.0329.04
5.2.10.0380.0688.94
5.2.00.0150.0328.79
5.1.60.0130.0278.08
5.1.50.0090.0328.07
5.1.40.0140.0268.07
5.1.30.0090.0338.41
5.1.20.0100.0328.44
5.1.10.0120.0308.16
5.1.00.0100.0318.16
5.0.50.0110.0246.64
5.0.40.0080.0246.50
5.0.30.0110.0356.31
5.0.20.0070.0266.28
5.0.10.0310.0646.26
5.0.00.0110.0336.25
4.4.90.0080.0164.78
4.4.80.0040.0224.76
4.4.70.0070.0194.75
4.4.60.0100.0154.76
4.4.50.0080.0174.77
4.4.40.0110.0264.71
4.4.30.0070.0194.75
4.4.20.0090.0204.84
4.4.10.0090.0174.85
4.4.00.0110.0304.76
4.3.110.0100.0174.67
4.3.100.0050.0204.66
4.3.90.0070.0174.63
4.3.80.0100.0274.58
4.3.70.0090.0154.63
4.3.60.0070.0184.63
4.3.50.0110.0144.62
4.3.40.0140.0204.54
4.3.30.0060.0183.30
4.3.20.0020.0213.29
4.3.10.0080.0183.25
4.3.00.0030.01015.47

preferences:
48.7 ms | 401 KiB | 5 Q