3v4l.org

run code in 300+ PHP versions simultaneously
<?php $payload = new stdClass(); $android = new stdClass(); $android->title = "test cafe"; $android->payload = array( '$state' => "base.messages" ); $ios = new stdClass(); $ios->title = "title" $ios->payload = array( ['$state'] => "base.messages" ); $notification = new stdClass(); $notification->alert = "title"; $notification->android = $android; $notification->ios = $ios; $data = array( "user_ids" => $userArray, "notification" => $notification );

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)
7.0.10.0100.09020.33
7.0.00.0100.07020.25
5.6.160.0000.06720.44
5.6.150.0070.06018.25
5.6.140.0170.06018.18
5.6.130.0030.04718.18
5.6.120.0100.08021.05
5.6.110.0000.07321.04
5.6.100.0170.07321.04
5.6.90.0100.03321.00
5.6.80.0000.04020.52
5.5.300.0130.07317.92
5.5.290.0170.07717.92
5.5.280.0130.05720.73
5.5.270.0030.08720.73
5.5.260.0030.08020.79
5.5.250.0100.07720.57
5.5.240.0130.07720.12

preferences:
141.57 ms | 1394 KiB | 7 Q