3v4l.org

run code in 300+ PHP versions simultaneously
<?php function XXhex2bin($h) { if (!is_string($h)) return null; $r=''; for ($a=0; $a<strlen($h); $a+=2) { $r.=chr(hexdec($h{$a}.$h{($a+1)})); } return $r; } $encoded = bin2hex(''); echo "0x".$encoded; ?>

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.00618.20
8.3.60.0150.00018.56
8.3.50.0120.00916.54
8.3.40.0150.00618.54
8.3.30.0110.00318.43
8.3.20.0080.00020.07
8.3.10.0050.00323.71
8.3.00.0050.00319.54
8.2.190.0070.01116.58
8.2.180.0070.01116.38
8.2.170.0110.00722.96
8.2.160.0100.00719.00
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00419.21
8.2.120.0070.00026.35
8.2.110.0060.00321.93
8.2.100.0040.00817.66
8.2.90.0080.00017.90
8.2.80.0000.00917.97
8.2.70.0000.00817.24
8.2.60.0000.00917.68
8.2.50.0040.00418.10
8.2.40.0050.00320.54
8.2.30.0000.01020.82
8.2.20.0070.00017.80
8.2.10.0030.00617.99
8.2.00.0070.00018.02
8.1.280.0070.01325.92
8.1.270.0040.00422.19
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00422.20
8.1.230.0040.00921.04
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.01117.23
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0060.00318.59
8.1.160.0040.00419.00
8.1.150.0060.00320.42
8.1.140.0000.00719.31
8.1.130.0030.00618.75
8.1.120.0000.00717.32
8.1.110.0080.00017.26
8.1.100.0080.00017.34
8.1.90.0000.00717.36
8.1.80.0070.00017.31
8.1.70.0030.00317.32
8.1.60.0060.00317.34
8.1.50.0080.00017.27
8.1.40.0040.00417.36
8.1.30.0040.00417.43
8.1.20.0000.00717.45
8.1.10.0040.00417.27
8.1.00.0020.00517.32
8.0.300.0050.00219.96
8.0.290.0040.00416.75
8.0.280.0030.00418.41
8.0.270.0030.00317.13
8.0.260.0030.00316.63
8.0.250.0000.00716.77
8.0.240.0000.00916.92
8.0.230.0070.00016.84
8.0.220.0070.00016.79
8.0.210.0030.00516.72
8.0.200.0060.00016.86
8.0.190.0030.00516.90
8.0.180.0040.00416.82
8.0.170.0030.00316.79
8.0.160.0000.00716.87
8.0.150.0030.00416.77
8.0.140.0000.00816.70
8.0.130.0030.00313.16
8.0.120.0060.00316.71
8.0.110.0000.00716.77
8.0.100.0050.00316.73
8.0.90.0030.00516.66
8.0.80.0030.01216.87
8.0.70.0070.00016.93
8.0.60.0040.00416.77
8.0.50.0000.00716.69
8.0.30.0130.00816.92
8.0.20.0130.00617.40
8.0.10.0070.00016.74
8.0.00.0070.01016.56
7.4.330.0020.00215.55
7.4.320.0060.00016.39
7.4.300.0070.00016.58
7.4.290.0000.00716.54
7.4.280.0040.00416.33
7.4.270.0000.00716.50
7.4.260.0000.00716.47
7.4.250.0040.00416.47
7.4.240.0070.00016.43
7.4.230.0000.00716.65
7.4.220.0070.02016.45
7.4.210.0030.01316.53
7.4.200.0000.00716.56
7.4.160.0080.00816.56
7.4.150.0040.01317.40
7.4.140.0100.01017.86
7.4.130.0090.00916.47
7.4.120.0190.00516.54
7.4.110.0060.01216.52
7.4.100.0130.01016.58
7.4.90.0110.00716.54
7.4.80.0090.00819.39
7.4.70.0150.00316.36
7.4.60.0100.00716.54
7.4.50.0000.01816.11
7.4.40.0120.00416.32
7.4.30.0040.01416.34
7.4.00.0070.00914.79
7.3.330.0000.00513.26
7.3.320.0000.00613.24
7.3.310.0070.00016.17
7.3.300.0030.00316.13
7.3.290.0050.00816.22
7.3.280.0090.00816.22
7.3.270.0050.01117.40
7.3.260.0120.00616.34
7.3.250.0050.01316.28
7.3.240.0060.01016.33
7.3.230.0130.01016.25
7.3.210.0040.01316.09
7.3.200.0140.00616.55
7.3.190.0060.00916.21
7.3.180.0100.00616.23
7.3.170.0090.01016.46
7.3.160.0060.01216.17
7.3.120.0060.01214.65
7.3.110.0080.00914.64
7.3.100.0100.00614.59
7.3.90.0080.00714.79
7.3.80.0030.01214.73
7.3.70.0080.00414.68
7.3.60.0040.00714.62
7.3.50.0090.00314.62
7.3.40.0050.00914.79
7.3.30.0100.00514.64
7.3.20.0050.00916.54
7.3.10.0040.01016.48
7.3.00.0040.01016.52
7.2.330.0120.00616.71
7.2.320.0060.01316.61
7.2.310.0100.00716.77
7.2.300.0060.01116.57
7.2.290.0050.01016.77
7.2.250.0070.01314.97
7.2.240.0070.01115.05
7.2.230.0060.01014.77
7.2.220.0000.01314.97
7.2.210.0110.00515.21
7.2.200.0040.00814.96
7.2.190.0030.01314.96
7.2.180.0060.00814.89
7.2.170.0050.00515.03
7.2.160.0100.00315.05
7.2.150.0120.00316.82
7.2.140.0000.01216.76
7.2.130.0050.00716.75
7.2.120.0080.00816.81
7.2.110.0040.00816.68
7.2.100.0040.01016.96
7.2.90.0070.00917.03
7.2.80.0080.00516.96
7.2.70.0060.00716.89
7.2.60.0080.00616.76
7.2.50.0080.00216.59
7.2.40.0070.00716.82
7.2.30.0070.00916.91
7.2.20.0020.01016.80
7.2.10.0070.00716.75
7.2.00.0090.00716.83
7.1.330.0060.00915.65
7.1.320.0060.00715.69
7.1.310.0050.00815.51
7.1.300.0080.00515.52
7.1.290.0060.00715.55
7.1.280.0020.01015.59
7.1.270.0030.01015.56
7.1.260.0070.00515.59
7.1.250.0030.01115.57
7.1.200.0000.00715.82
7.1.100.0000.01118.02
7.1.70.0070.01016.86
7.1.60.0140.01434.97
7.1.50.0110.01534.52
7.1.40.0180.01434.32
7.1.30.0180.00934.50
7.1.20.0190.00634.36
7.1.10.0060.00616.40
7.1.00.0080.00416.44
7.0.200.0110.00016.54
7.0.190.0090.00316.64
7.0.180.0040.00716.23
7.0.170.0000.01016.38
7.0.160.0040.00716.21
7.0.150.0000.01316.34
7.0.140.0090.00316.13
7.0.130.0110.00016.51
7.0.120.0000.01116.50
7.0.110.0050.00816.14
7.0.100.0000.01116.31
7.0.90.0070.00716.10
7.0.80.0060.00616.30
7.0.70.0000.01216.41
7.0.60.0040.00816.03
7.0.50.0080.00816.14
7.0.40.0040.00816.30
7.0.30.0030.01016.44
7.0.20.0040.00816.24
7.0.10.0030.00816.11
7.0.00.0000.01116.52

preferences:
17.37 ms | 401 KiB | 5 Q