3v4l.org

run code in 300+ PHP versions simultaneously
<?php function perg($dari, $ke, $callback) { echo "Saya pergi dari {$dari} menuju ke {$ke}."; if(is_callable($callback)){ $callback(); } } pergi('Jakarta','Bandung', function(){ echo "Saya mau pulang kampung dulu"; }

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.150.0150.04812.37
5.4.140.0140.04512.05
5.4.130.0150.04512.04
5.4.120.0130.04712.00
5.4.110.0160.04312.00
5.4.100.0150.04511.99
5.4.90.0150.04312.00
5.4.80.0160.04212.00
5.4.70.0130.04711.99
5.4.60.0220.06611.99
5.4.50.0150.04511.99
5.4.40.0140.04311.97
5.4.30.0210.06911.97
5.4.20.0140.04511.96
5.4.10.0130.04611.97
5.4.00.0180.05611.46
5.3.250.0150.04912.72
5.3.240.0160.04512.72
5.3.230.0180.04612.71
5.3.220.0130.04812.68
5.3.210.0180.04412.68
5.3.200.0170.04712.68
5.3.190.0180.04512.68
5.3.180.0170.04712.67
5.3.170.0160.04512.67
5.3.160.0180.05912.67
5.3.150.0190.04312.67
5.3.140.0180.04312.66
5.3.130.0140.04712.66
5.3.120.0190.04312.65
5.3.110.0160.04612.65
5.3.100.0200.04212.12
5.3.90.0160.04412.09
5.3.80.0160.04312.08
5.3.70.0180.05812.08
5.3.60.0160.04412.06
5.3.50.0160.04412.01
5.3.40.0160.04612.01
5.3.30.0180.04111.98
5.3.20.0140.04711.75
5.3.10.0160.04111.71
5.3.00.0160.04311.70

preferences:
142.39 ms | 1394 KiB | 7 Q