3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); var_dump(base_convert(12, "3", 10), base_convert("12", 3, 10));

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.0110.00318.30
8.3.50.0110.00618.23
8.3.40.0070.00718.70
8.3.30.0110.00418.58
8.3.20.0080.00020.78
8.3.10.0040.00423.48
8.3.00.0030.00620.77
8.2.180.0150.00418.43
8.2.170.0140.00022.96
8.2.160.0000.01320.35
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0070.00017.91
8.2.120.0040.00426.35
8.2.110.0060.00322.29
8.2.100.0090.00317.84
8.2.90.0050.00319.22
8.2.80.0000.00917.97
8.2.70.0000.00917.63
8.2.60.0030.00617.80
8.2.50.0090.00318.07
8.2.40.0000.00817.97
8.2.30.0080.00017.86
8.2.20.0000.00717.86
8.2.10.0040.00419.25
8.2.00.0040.00418.01
8.1.280.0110.00425.92
8.1.270.0070.00020.36
8.1.260.0000.00826.35
8.1.250.0050.00228.09
8.1.240.0050.00523.98
8.1.230.0070.00421.98
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0110.00017.22
8.1.190.0060.00317.10
8.1.180.0060.00318.10
8.1.170.0000.00818.53
8.1.160.0060.00318.66
8.1.150.0040.00418.79
8.1.140.0030.00318.85
8.1.130.0030.00320.28
8.1.120.0030.00617.22
8.1.110.0020.00517.34
8.1.100.0050.00317.32
8.1.90.0060.00317.31
8.1.80.0040.00417.26
8.1.70.0000.00717.18
8.1.60.0040.00417.30
8.1.50.0050.00517.43
8.1.40.0040.00417.34
8.1.30.0030.00517.41
8.1.20.0070.00017.48
8.1.10.0000.00917.56
8.1.00.0000.00817.34
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0040.00418.29
8.0.270.0070.00017.18
8.0.260.0000.00618.25
8.0.250.0060.00316.93
8.0.240.0070.00016.95
8.0.230.0030.00316.82
8.0.220.0040.00416.77
8.0.210.0070.00016.92
8.0.200.0070.00016.91
8.0.190.0000.00816.97
8.0.180.0000.00816.84
8.0.170.0080.00016.84
8.0.160.0070.00016.89
8.0.150.0000.00716.70
8.0.140.0030.00316.85
8.0.130.0050.00013.23
8.0.120.0000.00816.80
8.0.110.0040.00416.92
8.0.100.0040.00416.91
8.0.90.0040.00416.87
8.0.80.0090.01316.81
8.0.70.0040.00416.93
8.0.60.0000.00716.73
8.0.50.0070.00016.76
8.0.30.0060.01316.96
8.0.20.0200.00717.03
8.0.10.0080.00016.84
8.0.00.0080.00916.77
7.4.330.0020.00216.71
7.4.320.0030.00316.36
7.4.300.0030.00316.44
7.4.290.0040.00416.37
7.4.280.0000.00816.52
7.4.270.0030.00616.36
7.4.260.0040.00416.50
7.4.250.0020.00516.39
7.4.240.0040.00416.52
7.4.230.0000.00716.51
7.4.220.0030.00516.33
7.4.210.0090.00616.51
7.4.200.0000.00716.32
7.4.160.0070.01316.45
7.4.130.0070.01016.64
7.4.120.0120.00516.33
7.4.110.0100.00716.51
7.4.100.0000.01616.49
7.4.90.0000.01716.33
7.4.80.0140.00319.39
7.4.70.0060.01116.36
7.4.60.0060.00916.27
7.4.50.0030.01316.20
7.4.40.0060.01016.73
7.4.00.0030.01214.90
7.3.330.0000.00513.09
7.3.320.0000.00513.00
7.3.310.0040.00416.18
7.3.300.0030.00316.23
7.3.290.0040.00416.35
7.3.280.0040.01316.23
7.3.260.0150.00416.28
7.3.240.0060.01216.30
7.3.230.0110.00616.22
7.3.210.0140.00316.25
7.3.200.0130.01016.64
7.3.190.0120.00616.27
7.3.180.0120.01116.40
7.3.170.0030.01216.53
7.3.160.0000.01616.29
7.3.40.0100.00714.55
7.3.30.0060.01514.79
7.3.20.0090.00316.61
7.3.10.0100.01016.59
7.3.00.0040.01416.38
7.2.330.0090.00616.27
7.2.320.0100.00816.46
7.2.310.0000.01616.50
7.2.300.0100.00716.60
7.2.290.0070.01016.52
7.2.170.0080.00614.86
7.2.160.0070.01314.86
7.2.150.0080.00416.83
7.2.140.0050.00816.90
7.2.130.0000.01016.77
7.2.120.0110.00316.73
7.2.110.0090.01216.87
7.2.100.0080.00616.75
7.2.90.0040.01116.70
7.2.80.0060.01516.80
7.2.70.0080.01616.92
7.2.60.0070.00716.88
7.2.50.0110.00016.80
7.2.40.0080.00816.55
7.2.30.0100.00316.71
7.2.20.0040.00816.51
7.2.10.0110.00316.72
7.2.00.0030.01016.86
7.1.280.0100.01015.73
7.1.270.0090.00615.51
7.1.260.0150.00615.69
7.1.250.0060.00315.64

preferences:
45.41 ms | 401 KiB | 5 Q