3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function my_base_convert(string $number, int $frombase, int $tobase):string{ return base_convert($number,$frombase,$tobase); } var_dump(my_base_convert("255",10,16));

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.0120.00618.31
8.3.50.0130.00518.26
8.3.40.0150.00018.70
8.3.30.0090.00618.64
8.3.20.0080.00020.82
8.3.10.0050.00223.73
8.3.00.0060.00320.95
8.2.180.0150.00618.16
8.2.170.0070.00722.96
8.2.160.0070.00720.23
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00017.97
8.2.120.0040.00426.35
8.2.110.0090.00021.08
8.2.100.0130.00017.59
8.2.90.0000.00720.60
8.2.80.0060.00317.97
8.2.70.0000.00818.04
8.2.60.0030.00518.09
8.2.50.0040.00418.10
8.2.40.0000.00719.29
8.2.30.0000.00819.13
8.2.20.0000.00717.81
8.2.10.0000.00719.03
8.2.00.0030.00517.83
8.1.280.0080.00625.92
8.1.270.0040.00420.43
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00620.58
8.1.230.0070.00420.92
8.1.220.0040.00417.74
8.1.210.0050.00318.84
8.1.200.0090.00317.13
8.1.190.0070.00217.11
8.1.180.0080.00018.10
8.1.170.0050.00318.51
8.1.160.0050.00218.64
8.1.150.0070.00018.77
8.1.140.0070.00019.00
8.1.130.0030.00520.20
8.1.120.0030.00717.39
8.1.110.0040.00417.24
8.1.100.0040.00417.35
8.1.90.0040.00817.36
8.1.80.0030.00617.39
8.1.70.0030.00517.21
8.1.60.0050.00317.54
8.1.50.0030.00717.47
8.1.40.0030.00617.46
8.1.30.0060.00317.66
8.1.20.0040.00417.52
8.1.10.0000.00817.45
8.1.00.0000.00717.26
8.0.300.0060.00319.63
8.0.290.0000.00816.63
8.0.280.0030.00318.34
8.0.270.0030.00317.15
8.0.260.0030.00318.35
8.0.250.0070.00316.91
8.0.240.0000.00616.76
8.0.230.0000.00716.75
8.0.220.0030.00316.87
8.0.210.0070.00016.87
8.0.200.0040.00416.91
8.0.190.0000.00816.93
8.0.180.0080.00016.85
8.0.170.0030.00616.78
8.0.160.0030.00316.89
8.0.150.0000.00716.84
8.0.140.0000.00716.66
8.0.130.0060.00013.25
8.0.120.0040.00416.68
8.0.110.0000.00716.83
8.0.100.0000.00816.81
8.0.90.0000.00716.87
8.0.80.0110.00616.89
8.0.70.0040.00416.78
8.0.60.0070.00016.72
8.0.50.0050.00316.79
8.0.30.0040.01517.28
8.0.20.0170.00316.96
8.0.10.0040.00416.95
8.0.00.0080.00916.74
7.4.330.0030.00316.76
7.4.320.0000.00616.38
7.4.300.0000.00616.52
7.4.290.0030.00316.54
7.4.280.0040.00416.44
7.4.270.0030.00616.45
7.4.260.0000.00816.54
7.4.250.0030.00316.46
7.4.240.0040.00416.54
7.4.230.0020.00516.53
7.4.220.0040.00416.54
7.4.210.0060.01216.53
7.4.200.0030.00316.38
7.4.160.0060.01016.33
7.4.130.0080.00916.25
7.4.120.0070.01216.49
7.4.110.0070.01016.43
7.4.100.0090.01316.63
7.4.90.0130.00316.48
7.4.80.0070.01019.39
7.4.70.0100.00716.40
7.4.60.0090.00716.43
7.4.50.0060.00916.31
7.4.40.0170.00016.40
7.4.00.0060.00815.03
7.3.330.0020.00213.30
7.3.320.0050.00013.33
7.3.310.0030.00516.30
7.3.300.0030.00316.29
7.3.290.0000.00716.07
7.3.280.0060.01316.20
7.3.260.0100.00816.35
7.3.240.0080.00916.41
7.3.230.0130.00316.28
7.3.210.0090.01316.36
7.3.200.0130.00516.30
7.3.190.0060.00916.37
7.3.180.0060.01116.36
7.3.170.0030.01216.32
7.3.160.0120.00816.48
7.3.40.0030.00914.66
7.3.30.0090.00314.87
7.3.20.0060.00614.83
7.3.10.0170.00714.83
7.3.00.0150.00914.84
7.2.330.0090.01216.46
7.2.320.0130.01016.32
7.2.310.0070.01016.25
7.2.300.0110.01116.42
7.2.290.0120.00916.41
7.2.170.0070.01414.84
7.2.160.0060.01314.92
7.2.150.0220.01014.75
7.2.140.0110.00414.75
7.2.130.0120.00314.71
7.2.120.0140.01014.93
7.2.110.0190.00614.82
7.2.100.0060.01614.73
7.2.90.0110.00614.83
7.2.80.0070.00715.05
7.2.70.0170.00714.89
7.2.60.0160.00814.87
7.2.50.0060.00714.85
7.2.40.0090.00314.95
7.2.30.0070.00714.88
7.2.20.0030.01114.80
7.2.10.0100.00314.93
7.2.00.0130.00314.79
7.1.280.0170.00713.60
7.1.270.0060.00913.69
7.1.260.0060.01014.14
7.1.250.0130.00013.90

preferences:
29.97 ms | 401 KiB | 5 Q