3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 1234567890; $hex = strtoupper(dechex($number)); $hex_padded = str_pad($hex, 9*2, "0", STR_PAD_LEFT); preg_match_all('/.{2}/', $hex_padded, $matches); $result = array_reverse($matches[0]); var_dump($result);

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.0150.00318.43
8.3.50.0120.00521.93
8.3.40.0150.00718.98
8.3.30.0070.01018.98
8.3.20.0070.00020.29
8.3.10.0000.00821.92
8.3.00.0040.00422.44
8.2.180.0110.00416.75
8.2.170.0070.00722.96
8.2.160.0040.01120.95
8.2.150.0140.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.61
8.2.110.0070.00322.38
8.2.100.0000.01117.66
8.2.90.0050.00319.18
8.2.80.0000.00917.97
8.2.70.0100.00017.75
8.2.60.0040.00418.04
8.2.50.0030.00718.07
8.2.40.0080.00018.09
8.2.30.0000.00918.07
8.2.20.0000.00717.79
8.2.10.0000.00717.87
8.2.00.0030.00517.83
8.1.280.0110.00425.92
8.1.270.0040.00423.79
8.1.260.0000.00826.35
8.1.250.0030.01228.09
8.1.240.0040.00423.86
8.1.230.0040.00718.96
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00717.47
8.1.190.0000.00817.41
8.1.180.0060.00318.10
8.1.170.0040.00418.56
8.1.160.0040.00421.95
8.1.150.0000.00718.71
8.1.140.0040.00417.48
8.1.130.0030.00317.83
8.1.120.0040.00417.57
8.1.110.0000.00717.55
8.1.100.0030.00417.52
8.1.90.0030.00517.43
8.1.80.0040.00417.38
8.1.70.0030.00317.45
8.1.60.0050.00317.69
8.1.50.0000.00917.63
8.1.40.0130.00017.48
8.1.30.0080.00017.71
8.1.20.0040.00417.73
8.1.10.0060.00317.77
8.1.00.0040.00417.69
8.0.300.0000.00718.77
8.0.290.0000.00817.05
8.0.280.0030.00318.39
8.0.270.0000.00717.07
8.0.260.0030.00316.90
8.0.250.0030.00317.05
8.0.240.0030.00517.09
8.0.230.0030.00317.02
8.0.220.0000.00716.92
8.0.210.0070.00016.84
8.0.200.0030.00317.01
8.0.190.0030.00617.02
8.0.180.0050.00217.00
8.0.170.0050.00316.94
8.0.160.0040.00417.01
8.0.150.0050.00216.96
8.0.140.0050.00216.82
8.0.130.0050.00013.34
8.0.120.0000.00716.82
8.0.110.0040.00417.02
8.0.100.0030.00517.00
8.0.90.0070.00016.85
8.0.80.0000.01616.91
8.0.70.0000.00717.07
8.0.60.0040.00416.95
8.0.50.0040.00416.86
8.0.30.0100.01017.09
8.0.20.0110.00817.42
8.0.10.0040.00416.95
8.0.00.0100.00816.85
7.4.330.0000.00515.05
7.4.320.0000.00616.64
7.4.300.0000.00716.70
7.4.290.0040.00416.50
7.4.280.0030.00316.59
7.4.270.0000.00716.62
7.4.260.0000.00916.61
7.4.250.0040.00416.51
7.4.240.0040.00416.67
7.4.230.0000.00716.53
7.4.220.0160.01116.76
7.4.210.0070.01216.75
7.4.200.0050.00316.62
7.4.190.0070.00016.70
7.4.160.0060.01216.49
7.4.150.0120.00617.40
7.4.140.0110.00817.86
7.4.130.0160.00616.54
7.4.120.0120.00816.64
7.4.110.0130.01016.49
7.4.100.0060.01316.60
7.4.90.0070.01116.45
7.4.80.0100.00719.39
7.4.70.0130.00916.61
7.4.60.0170.00016.81
7.4.50.0030.00616.41
7.4.40.0070.01122.77
7.4.30.0100.00716.67
7.4.00.0030.01114.87
7.3.330.0050.00013.13
7.3.320.0050.00013.23
7.3.310.0030.00616.21
7.3.300.0050.00216.27
7.3.290.0040.01116.37
7.3.280.0090.00916.38
7.3.270.0060.01217.40
7.3.260.0090.01316.27
7.3.250.0110.00716.53
7.3.240.0080.00816.34
7.3.230.0070.01116.54
7.3.210.0090.00916.52
7.3.200.0100.00719.39
7.3.190.0120.00416.64
7.3.180.0130.00316.36
7.3.170.0080.00816.52
7.3.160.0080.00816.42
7.3.120.0110.00714.94
7.3.10.0090.00616.62
7.3.00.0070.00516.61
7.2.330.0120.00916.64
7.2.320.0060.01416.70
7.2.310.0130.00416.65
7.2.300.0110.00716.88
7.2.290.0070.01016.87
7.2.130.0080.00816.93
7.2.120.0100.00516.95
7.2.110.0050.01116.82
7.2.100.0060.00916.99
7.2.90.0090.00816.70
7.2.80.0090.00616.91
7.2.70.0090.00617.07
7.2.60.0040.00816.85
7.2.50.0080.00716.86
7.2.40.0090.00916.98
7.2.30.0020.01116.94
7.2.20.0070.00317.06
7.2.10.0070.00816.96
7.2.00.0070.00917.92
7.1.250.0120.00315.82
7.1.240.0030.00915.91
7.1.230.0110.00715.86
7.1.220.0090.00615.83
7.1.210.0060.00615.73
7.1.200.0110.00715.59
7.1.190.0130.00015.72
7.1.180.0000.00915.87
7.1.170.0080.00415.60
7.1.160.0070.00715.75
7.1.150.0040.00815.96
7.1.140.0060.00315.92
7.1.130.0040.00915.74
7.1.120.0080.00515.88
7.1.110.0080.00816.00
7.1.100.0080.00617.02
7.1.90.0110.00415.83
7.1.80.0030.01216.01
7.1.70.0020.00616.57
7.1.60.0090.00917.88
7.1.50.0110.00616.37
7.1.40.0000.00816.06
7.1.30.0100.00515.79
7.1.20.0070.00715.85
7.1.10.0080.00615.82
7.1.00.0070.03718.99
7.0.330.0110.00815.47
7.0.320.0030.01215.48
7.0.310.0080.00415.50
7.0.300.0060.00615.37
7.0.290.0030.01015.32
7.0.280.0000.00915.66
7.0.270.0100.01015.57
7.0.260.0030.01015.52
7.0.250.0110.00515.45
7.0.240.0040.00915.18
7.0.230.0060.00915.61
7.0.220.0110.00415.35
7.0.210.0060.00615.69
7.0.200.0000.00916.13
7.0.190.0060.00815.61
7.0.180.0000.01515.64
7.0.170.0100.00615.44
7.0.160.0050.00515.18
7.0.150.0030.00615.68
7.0.140.0050.04618.64
7.0.130.0090.00615.66
7.0.120.0080.00415.52
7.0.110.0050.00715.61
7.0.100.0000.01115.54
7.0.90.0150.00015.30
7.0.80.0080.00815.38
7.0.70.0070.01015.61
7.0.60.0090.04517.70
7.0.50.0050.03516.61
7.0.40.0050.04916.93
7.0.30.0230.03816.73
7.0.20.0230.04016.83
7.0.10.0030.03416.68
7.0.00.0080.04416.88
5.6.380.0160.00314.40
5.6.370.0030.01314.63
5.6.360.0060.01114.23
5.6.350.0090.00314.56
5.6.340.0060.00614.34
5.6.330.0100.00714.27
5.6.320.0100.00714.37
5.6.310.0030.00714.47
5.6.300.0040.00714.54
5.6.290.0100.00014.11
5.6.280.0060.04217.61
5.6.270.0070.00714.39
5.6.260.0060.00914.45
5.6.250.0090.00914.38
5.6.240.0060.00914.40
5.6.230.0130.00014.19
5.6.220.0030.01314.38
5.6.210.0060.04117.56
5.6.200.0050.02316.14
5.6.190.0090.02717.30
5.6.180.1890.02317.42
5.6.170.0160.04517.46
5.6.160.0120.03817.25
5.6.150.0040.02516.16
5.6.140.0020.03316.46
5.6.130.0090.02816.19
5.6.120.0070.03717.75
5.6.110.0030.02917.57
5.6.100.0050.03717.72
5.6.90.0070.04617.41
5.6.80.0130.03817.34
5.6.70.2330.02317.30
5.6.60.0110.00014.10
5.6.50.0030.00914.07
5.6.40.0120.00414.13
5.6.30.0000.00914.09
5.6.20.0100.00714.01
5.6.10.0080.00413.98
5.6.00.0100.00314.11
5.5.380.0060.00611.08
5.5.370.0000.01011.04
5.5.360.0080.00511.04
5.5.350.0150.02415.87
5.5.340.0070.02514.36
5.5.330.0070.04115.71
5.5.320.0220.02415.76
5.5.310.0210.04215.59
5.5.300.0040.02514.56
5.5.290.0050.02714.47
5.5.280.0080.02615.96
5.5.270.0030.04315.86
5.5.260.0100.04215.95
5.5.250.0030.03015.71
5.5.240.0160.03515.66
5.5.230.0000.00911.06
5.5.220.0050.00511.04
5.5.210.0030.00911.00
5.5.200.0090.00311.30
5.5.190.0100.00010.87
5.5.180.0070.00410.69
5.5.170.0040.00411.16
5.5.160.0100.00310.98
5.5.150.0070.00410.68
5.5.140.0000.01210.96
5.5.130.0040.00711.02
5.5.120.0030.00910.96
5.5.110.0000.01211.31
5.5.100.0000.01111.02
5.5.90.0030.00610.95
5.5.80.0100.00311.21
5.5.70.0030.00910.92
5.5.60.0100.00311.10
5.5.50.0000.01210.81
5.5.40.0060.00610.96
5.5.30.0030.00711.12
5.5.20.0060.00610.84
5.5.10.0090.00310.90
5.5.00.0120.00011.00
5.4.450.0020.02915.17
5.4.440.0290.02415.11
5.4.430.0620.02015.16
5.4.420.0250.02515.15
5.4.410.0080.03014.87
5.4.400.0030.03814.92
5.4.390.0050.03314.83
5.4.380.0120.03714.75
5.4.370.0170.02714.82
5.4.360.0090.03114.78
5.4.350.0140.03114.71
5.4.340.0110.03114.77
5.4.330.0080.00310.98
5.4.320.0090.02011.70
5.4.310.0060.02411.54
5.4.300.0120.02011.75
5.4.290.0060.02311.72
5.4.280.0060.02111.55
5.4.270.0060.02111.51
5.4.260.0040.02611.60
5.4.250.0050.02411.59
5.4.240.0090.01911.57
5.4.230.0040.02211.64
5.4.220.0060.02111.61
5.4.210.0020.02311.55
5.4.200.0030.02611.64
5.4.190.0070.02311.60
5.4.180.0040.02411.63
5.4.170.0040.02411.60
5.4.160.0060.02211.53
5.4.150.0060.02111.63
5.4.140.0030.02511.55
5.4.130.0040.02411.41
5.4.120.0080.02511.45
5.4.110.0070.02611.50
5.4.100.0060.02211.34
5.4.90.0070.02211.36
5.4.80.0040.02611.50
5.4.70.0070.01811.50
5.4.60.0040.02411.32
5.4.50.0080.01811.53
5.4.40.0060.01811.48
5.4.30.0070.02011.54
5.4.20.0070.02111.49
5.4.10.0080.01711.53
5.4.00.0070.02211.17
5.3.290.0080.02311.71
5.3.280.0060.02111.48
5.3.270.0020.02511.66
5.3.260.0060.02311.52
5.3.250.0040.02211.61
5.3.240.0050.02411.54
5.3.230.0040.02311.55
5.3.220.0070.01911.50
5.3.210.0040.02611.46
5.3.200.0040.02311.55
5.3.190.0050.02011.61
5.3.180.0040.02111.63
5.3.170.0040.02711.52
5.3.160.0080.02511.59
5.3.150.0040.02511.66
5.3.140.0070.02111.56
5.3.130.0070.02211.58
5.3.120.0040.02711.54
5.3.110.0050.02311.58
5.3.100.0080.02111.30
5.3.90.0060.02111.30
5.3.80.0060.02211.19
5.3.70.0050.02111.18
5.3.60.0040.02311.33
5.3.50.0040.02311.17
5.3.40.0080.02011.17
5.3.30.0040.02411.08
5.3.20.0060.02110.96
5.3.10.0080.01710.91
5.3.00.0040.02010.84
5.2.170.0030.0199.40
5.2.160.0030.0209.40
5.2.150.0040.0189.40
5.2.140.0060.0199.40
5.2.130.0030.0209.38
5.2.120.0020.0199.38
5.2.110.0050.0199.39
5.2.100.0040.0199.38
5.2.90.0080.0149.38
5.2.80.0030.0199.38
5.2.70.0040.0189.38
5.2.60.0020.0219.36
5.2.50.0030.0209.35
5.2.40.0030.0209.33
5.2.30.0040.0199.32
5.2.20.0040.0219.31
5.2.10.0040.0199.28
5.2.00.0020.0209.21
5.1.60.0080.0118.85
5.1.50.0060.0148.85
5.1.40.0050.0158.84
5.1.30.0060.0159.02
5.1.20.0020.0189.03
5.1.10.0060.0138.89
5.1.00.0060.0148.89
5.0.50.0020.0138.13
5.0.40.0030.0138.06
5.0.30.0030.0197.96
5.0.20.0040.0127.95
5.0.10.0020.0157.94
5.0.00.0030.0207.94
4.4.90.0020.0127.22
4.4.80.0050.0087.21
4.4.70.0030.0107.20
4.4.60.0020.0127.21
4.4.50.0030.0117.21
4.4.40.0020.0167.18
4.4.30.0020.0117.21
4.4.20.0020.0147.25
4.4.10.0040.0127.25
4.4.00.0050.0147.21
4.3.110.0030.0097.16
4.3.100.0040.0107.16
4.3.90.0020.0137.15
4.3.80.0030.0177.12
4.3.70.0020.0127.14
4.3.60.0020.0097.14
4.3.50.0010.0117.14
4.3.40.0050.0117.10
4.3.30.0040.0096.47
4.3.20.0020.0116.46
4.3.10.0020.0226.44
4.3.00.0030.01212.38

preferences:
39.28 ms | 401 KiB | 5 Q