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 hex2bin($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.60.0140.00718.30
8.3.50.0110.00416.38
8.3.40.0090.01218.67
8.3.30.0140.00018.55
8.3.20.0070.00020.16
8.3.10.0050.00323.48
8.3.00.0050.00319.67
8.2.180.0040.01116.50
8.2.170.0100.00722.96
8.2.160.0070.00718.91
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00419.30
8.2.120.0080.00026.35
8.2.110.0080.00420.57
8.2.100.0080.00417.78
8.2.90.0000.00819.02
8.2.80.0030.00617.97
8.2.70.0050.00317.38
8.2.60.0040.00417.91
8.2.50.0000.00818.10
8.2.40.0030.00520.42
8.2.30.0060.00319.02
8.2.20.0030.00617.80
8.2.10.0070.00017.92
8.2.00.0070.00017.96
8.1.280.0090.01225.92
8.1.270.0070.00022.10
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00423.79
8.1.230.0090.00321.00
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0030.00717.22
8.1.190.0040.00417.23
8.1.180.0020.00518.10
8.1.170.0080.00018.52
8.1.160.0000.00718.82
8.1.150.0050.00318.66
8.1.140.0000.00719.50
8.1.130.0100.00018.64
8.1.120.0030.00317.35
8.1.110.0040.00417.27
8.1.100.0050.00317.31
8.1.90.0000.00717.20
8.1.80.0000.00717.33
8.1.70.0000.00717.21
8.1.60.0060.00317.41
8.1.50.0050.00217.36
8.1.40.0000.00817.27
8.1.30.0040.00417.45
8.1.20.0080.00017.44
8.1.10.0000.00817.33
8.1.00.0040.00417.16
8.0.300.0000.00718.77
8.0.290.0070.00016.58
8.0.280.0000.00718.35
8.0.270.0000.00717.03
8.0.260.0000.00716.75
8.0.250.0070.00016.79
8.0.240.0060.00316.95
8.0.230.0030.00316.89
8.0.220.0000.00716.70
8.0.210.0000.00716.88
8.0.200.0000.00716.89
8.0.190.0070.00016.82
8.0.180.0000.00716.86
8.0.170.0000.00716.73
8.0.160.0040.00416.79
8.0.150.0000.00716.77
8.0.140.0000.00716.68
8.0.130.0030.00513.24
8.0.120.0000.00716.69
8.0.110.0040.00416.84
8.0.100.0040.00416.64
8.0.90.0070.00016.73
8.0.80.0130.00716.75
8.0.70.0040.00416.85
8.0.60.0000.00716.85
8.0.50.0040.00416.92
8.0.30.0070.01316.89
8.0.20.0090.01017.40
8.0.10.0070.00016.89
8.0.00.0070.01116.56
7.4.330.0050.00015.55
7.4.320.0060.00016.56
7.4.300.0000.00716.54
7.4.290.0000.00916.58
7.4.280.0000.00716.45
7.4.270.0070.00016.43
7.4.260.0000.00716.48
7.4.250.0000.00716.42
7.4.240.0030.00316.47
7.4.230.0030.00316.55
7.4.220.0110.00716.64
7.4.210.0100.00616.66
7.4.200.0030.00316.55
7.4.160.0080.00816.41
7.4.150.0060.01217.40
7.4.140.0140.01217.86
7.4.130.0100.00716.47
7.4.120.0120.00916.49
7.4.110.0080.00816.57
7.4.100.0100.01016.46
7.4.90.0070.01416.60
7.4.80.0130.00319.39
7.4.70.0140.00616.43
7.4.60.0100.00716.52
7.4.50.0090.00616.68
7.4.40.0150.00916.55
7.4.30.0120.00416.56
7.4.00.0120.00315.05
7.3.330.0000.00513.12
7.3.320.0030.00313.19
7.3.310.0030.00316.09
7.3.300.0030.00316.20
7.3.290.0060.00916.22
7.3.280.0050.01116.18
7.3.270.0090.00917.40
7.3.260.0070.01016.49
7.3.250.0130.00716.16
7.3.240.0080.00816.27
7.3.230.0060.01116.48
7.3.210.0060.01616.51
7.3.200.0090.00616.38
7.3.190.0090.01316.14
7.3.180.0120.00316.40
7.3.170.0070.01116.21
7.3.160.0070.01016.26
7.2.330.0070.01116.66
7.2.320.0070.01016.43
7.2.310.0100.00716.64
7.2.300.0030.01316.57
7.2.290.0100.01016.44
7.2.60.0100.00616.47
7.2.00.0090.00319.32
7.1.200.0080.00515.83
7.1.100.0060.00917.89
7.1.70.0080.01116.86
7.1.60.0190.00735.13
7.1.50.0090.02334.58
7.1.40.0220.01534.52
7.1.30.0600.01234.27
7.1.20.0470.00334.50
7.1.10.0270.01216.48
7.1.00.0060.00616.64
7.0.200.0040.00816.88
7.0.190.0000.01316.72
7.0.180.0080.00515.93
7.0.170.0370.01316.38
7.0.160.0030.01016.06
7.0.150.0280.01416.08
7.0.140.0030.00916.15
7.0.130.0030.01016.45
7.0.120.0160.00714.36
7.0.110.0030.00916.43
7.0.100.0060.00616.16
7.0.90.0070.00716.16
7.0.80.0060.00616.19
7.0.70.0000.01216.09
7.0.60.0030.01015.94
7.0.50.0030.00916.05
7.0.40.0060.00616.38
7.0.30.0000.01216.18
7.0.20.0060.00616.36
7.0.10.0060.00616.11
7.0.00.0070.00416.27

preferences:
48.25 ms | 400 KiB | 5 Q