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.6.280.0030.07321.10
5.6.250.0070.05720.62
5.6.240.0030.06020.60
5.6.230.0000.05720.68
5.6.220.0070.04020.73
5.6.210.0100.06020.58
5.6.200.0100.04021.10
5.6.190.0070.04021.10
5.6.180.0000.03721.04
5.6.170.0030.04020.96
5.6.160.0000.03720.93
5.6.150.0030.03721.07
5.6.140.0000.03721.17
5.6.130.0070.03321.07
5.6.120.0000.07321.07
5.6.110.0070.03721.05
5.6.100.0000.03721.02
5.6.90.0130.02321.11
5.6.80.0070.03720.41
5.6.70.0030.04320.48
5.6.60.0030.03320.54
5.6.50.0100.02720.42
5.6.40.0030.03320.46
5.6.30.0030.03720.43
5.6.20.0070.03020.37
5.6.10.0000.03720.43
5.6.00.0030.03320.51
5.5.380.0100.04320.34
5.5.370.0100.05020.37
5.5.360.0070.06020.34
5.5.350.0070.04020.37
5.5.340.0130.03320.92
5.5.330.0070.03320.83
5.5.320.0070.03720.91
5.5.310.0030.03320.90
5.5.300.0100.03020.75
5.5.290.0070.07720.86
5.5.280.0100.06020.91
5.5.270.0030.03720.76
5.5.260.0030.04320.79
5.5.250.0070.03720.58
5.5.240.0000.03720.31
5.5.230.0070.03020.22
5.5.220.0070.03020.23
5.5.210.0130.02320.29
5.5.200.0100.03320.08
5.5.190.0030.04320.17
5.5.180.0030.05020.17
5.5.160.0070.03020.10
5.5.150.0070.03020.25
5.5.140.0070.03020.13
5.5.130.0030.04020.14
5.5.120.0030.03320.22
5.5.110.0030.03320.27
5.5.100.0070.03320.04
5.5.90.0030.03020.01
5.5.80.0000.04320.04
5.5.70.0070.03019.99
5.5.60.0170.04320.14
5.5.50.0070.08020.05
5.5.40.0070.04720.07
5.5.30.0000.04319.95
5.5.20.0100.03320.11
5.5.10.0030.05020.03
5.5.00.0000.05720.02
5.4.450.0030.07019.27
5.4.440.0070.03319.55
5.4.430.0270.01319.13
5.4.420.0130.02719.22
5.4.410.0070.03019.18
5.4.400.0070.03719.14
5.4.390.0070.03319.04
5.4.380.0000.03319.05
5.4.370.0030.03018.98
5.4.360.0000.03719.03
5.4.350.0030.03319.11
5.4.340.0100.02319.11
5.4.320.0030.05319.06
5.4.310.0000.03718.80
5.4.300.0000.03319.04
5.4.290.0000.03319.04
5.4.280.0030.03719.03
5.4.270.0000.03318.78
5.4.260.0070.02719.02
5.4.250.0000.03318.97
5.4.240.0000.05019.06
5.4.230.0070.06018.89
5.4.220.0000.07019.06
5.4.210.0100.04019.14
5.4.200.0170.03319.04
5.4.190.0070.03719.02
5.4.180.0030.03719.03
5.4.170.0070.06719.05
5.4.160.0070.05719.07
5.4.150.0130.04018.76
5.4.140.0070.06316.07
5.4.130.0070.03316.36
5.4.120.0100.04316.11
5.4.110.0070.05716.43
5.4.100.0000.05016.21
5.4.90.0200.02716.35
5.4.80.0070.07016.20
5.4.70.0170.05316.22
5.4.60.0100.04716.29
5.4.50.0070.07316.32
5.4.40.0100.04716.46
5.4.30.0070.04716.38
5.4.20.0000.05016.18
5.4.10.0100.05716.31
5.4.00.0000.05015.78
5.3.270.0130.05014.46
5.3.260.0070.04014.61
5.3.250.0030.04314.61
5.3.240.0000.06714.61
5.3.230.0130.04714.57
5.3.220.0030.05314.48
5.3.210.0100.07014.55
5.3.200.0030.05314.56
5.3.190.0070.07714.57
5.3.180.0070.07014.51
5.3.170.0070.04014.55
5.3.160.0130.04714.41
5.3.150.0030.07314.57
5.3.140.0000.06714.55
5.3.130.0030.04314.37
5.3.120.0030.06014.40
5.3.110.0170.04314.54
5.3.100.0100.03714.05
5.3.90.0070.03313.93
5.3.80.0000.04313.93
5.3.70.0130.03314.01
5.3.60.0030.03713.91
5.3.50.0030.03713.92
5.3.40.0000.04013.93
5.3.30.0100.04013.68
5.3.20.0000.03713.55
5.3.10.0030.06713.42
5.3.00.0000.04313.49
5.2.170.0130.03011.18
5.2.160.0070.02311.12
5.2.150.0030.03711.10
5.2.140.0070.02711.05
5.2.130.0000.03011.14
5.2.120.0000.04011.12
5.2.110.0030.03010.91
5.2.100.0030.03711.04
5.2.90.0070.02711.05
5.2.80.0000.04011.07
5.2.70.0100.03011.09
5.2.60.0070.03010.96
5.2.50.0070.04711.05
5.2.40.0070.05711.04
5.2.30.0030.04710.96
5.2.20.0030.05011.03
5.2.10.0070.03010.79
5.2.00.0030.03710.74
5.1.60.0000.02710.02
5.1.50.0000.0279.99
5.1.40.0070.0239.96
5.1.30.0000.03010.29
5.1.20.0030.02710.39
5.1.10.0000.04310.11
5.1.00.0070.05710.11
5.0.50.0030.0279.59
5.0.40.0000.0339.59
5.0.30.0030.0339.59
5.0.20.0070.0239.59
5.0.10.0000.0479.59
5.0.00.0030.0639.59
4.4.90.0030.0179.59
4.4.80.0000.0179.59
4.4.70.0000.0209.59
4.4.60.0030.0309.59
4.4.50.0030.0239.59
4.4.40.0000.0309.59
4.4.30.0000.0179.59
4.4.20.0030.0139.59
4.4.10.0000.0279.59
4.4.00.0000.0339.59
4.3.110.0000.0239.59
4.3.100.0000.0179.59
4.3.90.0030.0209.59
4.3.80.0000.0409.59
4.3.70.0070.0139.59
4.3.60.0000.0209.59
4.3.50.0000.0239.59
4.3.40.0070.0509.59
4.3.30.0000.0339.59
4.3.20.0000.0309.59
4.3.10.0030.0309.59
4.3.00.0000.0239.59

preferences:
144.94 ms | 1394 KiB | 7 Q