3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=array( [0] => array ( 'id' => 1, 'title' => 'ficton', 'modules' => array( [0] => array( 'other_id' => 1, 'other_title' => 'James Clavell' ), [1] => array( 'other_id' => 2, 'other_title' => 'Terry Pratchett' ), [2] => array( 'other_id' => 3, 'other_title' => 'Robert Ludlum' ), ), [1] => array ( 'id' => 2, 'title' => 'non-ficton', 'modules' => array( [1] => array( 'other_id' => 5, 'other_title' => 'An excessive book of excessively interesting things' ), [2] => array( 'other_id' => 6, 'other_title' => 'It\'s late, I can\'t think of what to put here' ), ) ) ) print_r($array);

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.170.0100.04018.96
5.4.160.0030.06018.95
5.4.150.0070.04018.83
5.4.140.0030.03716.43
5.4.130.0030.04316.34
5.4.120.0070.05716.41
5.4.110.0100.06316.41
5.4.100.0130.02716.37
5.4.90.0170.03316.39
5.4.80.0100.04316.41
5.4.70.0100.06316.65
5.4.60.0100.04316.45
5.4.50.0030.06016.25
5.4.40.0070.03716.28
5.4.30.0030.03716.45
5.4.20.0030.03716.34
5.4.10.0070.03316.30
5.4.00.0000.03715.99
5.3.270.0100.04314.63
5.3.260.0070.04714.42
5.3.250.0000.08014.55
5.3.240.0030.06314.42
5.3.230.0000.04714.52
5.3.220.0030.04314.49
5.3.210.0000.04714.66
5.3.200.0100.03714.52
5.3.190.0100.05014.49
5.3.180.0100.04314.50
5.3.170.0030.05014.48
5.3.160.0070.04014.46
5.3.150.0100.04014.49
5.3.140.0170.03314.48
5.3.130.0000.04314.34
5.3.120.0070.03714.49
5.3.110.0100.04314.52
5.3.100.0070.03313.96
5.3.90.0070.03313.81
5.3.80.0000.04013.95
5.3.70.0070.03313.97
5.3.60.0070.03713.93
5.3.50.0000.04313.89
5.3.40.0030.03713.90
5.3.30.0000.03713.85
5.3.20.0030.03713.78
5.3.10.0170.05313.64
5.3.00.0000.03713.56

preferences:
131.01 ms | 1386 KiB | 7 Q