3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 0x80; // 128 base 10 var_dump($a); var_dump(base_convert($a, 10, 2)); // not base_convert($a, 16, 2) $b = ~$a; // -128 - 1 == -129 base 10 var_dump($b); var_dump(base_convert($b, 10, 2), $b);// not base_convert($b, 16,2); can base_convert handle negative values? printf("%b", $b); echo "\n\n"; $x = 10; printf("%x %d %b,$x,$x,$x);

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)
5.4.230.0170.04812.32
5.4.220.0160.04312.32
5.4.210.0180.04312.33
5.4.200.0180.05012.32
5.4.190.0120.04812.32
5.4.180.0230.06912.32
5.4.170.0180.04712.33
5.4.160.0220.04512.32
5.4.150.0160.04912.32
5.4.140.0170.04312.01
5.4.130.0390.08811.99
5.4.120.0150.04511.96
5.4.110.0140.04711.95
5.4.100.0150.04411.96
5.4.90.0200.04411.95
5.4.80.0170.04011.95
5.4.70.0360.09011.95
5.4.60.0170.04911.95
5.4.50.0200.04011.95
5.4.40.0110.04611.94
5.4.30.0190.04311.93
5.4.20.0110.04511.93
5.4.10.0140.04311.93
5.4.00.0140.04411.43
5.3.280.0130.04912.71
5.3.270.0310.09212.72
5.3.260.0200.04212.72
5.3.250.0190.04112.72
5.3.240.0190.04712.72
5.3.230.0220.04812.71
5.3.220.0190.05012.68
5.3.210.0160.04812.68
5.3.200.0180.04612.68
5.3.190.0220.04112.67
5.3.180.0210.04112.67
5.3.170.0210.04312.67
5.3.160.0170.04612.67
5.3.150.0300.05712.68
5.3.140.0380.08712.66
5.3.130.0160.04712.66
5.3.120.0250.04012.66
5.3.110.0230.04212.66
5.3.100.0200.04612.11
5.3.90.0390.08212.09
5.3.80.0210.04212.08
5.3.70.0300.12912.08
5.3.60.0220.04812.06
5.3.50.0150.04912.00
5.3.40.0280.04312.00
5.3.30.0270.09611.94
5.3.20.0200.04411.70
5.3.10.0180.04111.66
5.3.00.0200.04411.66

preferences:
139.82 ms | 1394 KiB | 7 Q