3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 'indexColor' => '#0FF0FF', 'faviURL' => get_stylesheet_directory_uri() . '/favicon.ico', 'secondColor' => '#0FFF0F', 'background' => array( 'image' => NULL, 'color' => '#DDDDDD', 'repeat' => 'no-repeat' ), 'blog' => array( 'animations' => array( 'title_classes' => 'wow animated fadeIn' ) ), 'sidebar' => array( 'position' => 'right' ) ); function flatten_array(array $array) { $flattened_array = array(); array_walk_recursive($array, function($a) use (&$flattened_array) { $flattened_array[] = $a; }); return $flattened_array; } print_r(flatten_array($arr));

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)
8.3.60.0070.01116.74
8.3.50.0090.01422.05
8.3.40.0100.01019.02
8.3.30.0070.00718.84
8.3.20.0050.00320.20
8.3.10.0060.00318.73
8.3.00.0070.00023.53
8.2.180.0140.00716.50
8.2.170.0070.00722.96
8.2.160.0070.00722.08
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00820.61
8.2.120.0040.00426.35
8.2.110.0030.00621.00
8.2.100.0090.00318.04
8.2.90.0040.00419.05
8.2.80.0060.00317.97
8.2.70.0030.00617.60
8.2.60.0000.00817.68
8.2.50.0000.00818.09
8.2.40.0000.00822.27
8.2.30.0040.00419.36
8.2.20.0000.00717.86
8.2.10.0000.00718.06
8.2.00.0030.00618.13
8.1.280.0120.00625.92
8.1.270.0000.00822.23
8.1.260.0000.00828.09
8.1.250.0000.00828.09
8.1.240.0060.00322.44
8.1.230.0070.01117.73
8.1.220.0050.00317.78
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0030.00617.13
8.1.180.0000.00918.10
8.1.170.0030.00618.20
8.1.160.0040.00420.65
8.1.150.0040.00418.77
8.1.140.0040.00419.42
8.1.130.0000.00717.50
8.1.120.0000.00717.36
8.1.110.0070.00017.24
8.1.100.0040.00417.33
8.1.90.0050.00317.38
8.1.80.0080.00017.21
8.1.70.0000.00717.28
8.1.60.0040.00417.35
8.1.50.0030.00517.30
8.1.40.0050.00517.43
8.1.30.0080.00017.63
8.1.20.0000.00717.46
8.1.10.0030.00517.56
8.1.00.0040.00417.37
8.0.300.0060.00318.77
8.0.290.0070.00016.63
8.0.280.0030.00318.39
8.0.270.0000.00717.21
8.0.260.0060.00017.20
8.0.250.0000.00816.87
8.0.240.0000.00616.95
8.0.230.0030.00316.97
8.0.220.0030.00316.92
8.0.210.0000.00816.88
8.0.200.0070.00016.90
8.0.190.0000.00816.98
8.0.180.0040.00416.99
8.0.170.0000.00716.93
8.0.160.0000.00816.92
8.0.150.0000.00716.80
8.0.140.0050.00516.81
8.0.130.0030.00313.39
8.0.120.0030.00616.85
8.0.110.0000.00716.84
8.0.100.0040.00416.94
8.0.90.0040.00416.80
8.0.80.0070.00716.95
8.0.70.0040.00416.77
8.0.60.0040.00416.85
8.0.50.0040.00416.76
8.0.30.0080.00916.91
8.0.20.0100.01117.40
8.0.10.0030.00516.86
8.0.00.0070.01016.70
7.4.330.0000.00516.77
7.4.320.0070.00016.54
7.4.300.0060.00016.43
7.4.290.0000.00716.32
7.4.280.0060.00316.39
7.4.270.0030.00316.47
7.4.260.0000.00816.58
7.4.250.0040.00416.33
7.4.240.0040.00416.46
7.4.230.0000.00716.48
7.4.220.0070.01116.47
7.4.210.0120.00616.61
7.4.200.0040.00416.63
7.4.160.0060.01016.64
7.4.150.0160.00317.40
7.4.140.0110.00917.86
7.4.130.0140.00316.55
7.4.120.0110.00616.54
7.4.110.0110.01216.50
7.4.100.0200.00316.40
7.4.90.0090.01016.49
7.4.80.0060.01019.39
7.4.70.0110.00616.54
7.4.60.0100.00716.68
7.4.50.0030.01016.38
7.4.40.0140.00316.42
7.4.30.0090.01316.71
7.4.10.0160.00315.32
7.4.00.0110.00415.15
7.3.330.0030.00313.24
7.3.320.0030.00313.34
7.3.310.0070.00016.32
7.3.300.0070.00016.30
7.3.290.0090.00816.35
7.3.280.0090.01116.32
7.3.270.0030.01417.40
7.3.260.0070.01016.28
7.3.250.0100.00716.36
7.3.240.0050.01216.46
7.3.230.0100.00716.62
7.3.210.0060.01016.48
7.3.200.0060.01019.39
7.3.190.0030.01316.43
7.3.180.0120.00916.43
7.3.170.0000.01516.30
7.3.160.0100.00516.34
7.3.130.0100.01015.32
7.3.120.0080.00915.16
7.3.110.0050.01215.15
7.3.100.0020.01615.10
7.3.90.0080.01014.98
7.3.80.0070.00815.05
7.3.70.0080.00615.11
7.3.60.0090.00615.08
7.3.50.0090.00515.02
7.3.40.0080.00615.11
7.3.30.0030.01015.00
7.3.20.0070.00416.63
7.3.10.0070.00716.68
7.3.00.0050.01016.71
7.2.330.0080.00816.32
7.2.320.0130.00316.63
7.2.310.0200.00316.39
7.2.300.0060.01216.49
7.2.290.0100.01316.67
7.2.260.0100.01015.32
7.2.250.0090.00615.32
7.2.240.0050.01115.18
7.2.230.0050.01315.11
7.2.220.0090.00715.19
7.2.210.0060.00815.11
7.2.200.0060.01015.17
7.2.190.0130.00315.04
7.2.180.0000.01215.21
7.2.170.0060.00814.97
7.2.160.0040.01115.12
7.2.150.0060.01016.63
7.2.140.0050.01016.85
7.2.130.0020.01316.81
7.2.120.0090.00716.81
7.2.110.0080.00716.67
7.2.100.0020.01016.78
7.2.90.0060.01116.76
7.2.80.0080.00616.67
7.2.70.0050.00816.76
7.2.60.0040.01016.81
7.2.50.0070.00616.74
7.2.40.0070.00616.72
7.2.30.0040.01016.86
7.2.20.0050.01116.80
7.2.10.0040.00716.58
7.2.00.0030.01017.52
7.1.330.0070.00715.66
7.1.320.0030.01215.59
7.1.310.0050.00815.58
7.1.300.0050.00715.75
7.1.290.0090.00615.70
7.1.280.0030.01115.65
7.1.270.0080.00715.75
7.1.260.0050.00415.74
7.1.250.0070.01015.70
7.1.240.0130.00315.32
7.1.230.0060.00615.44
7.1.220.0040.01115.33
7.1.210.0070.00715.45
7.1.200.0100.00415.53
7.1.190.0070.00715.78
7.1.180.0090.00615.69
7.1.170.0060.00315.70
7.1.160.0040.00415.55
7.1.150.0060.00615.43
7.1.140.0030.01015.69
7.1.130.0070.00715.63
7.1.120.0080.00415.56
7.1.110.0090.00315.82
7.1.100.0020.01116.71
7.1.90.0080.00415.66
7.1.80.0030.01015.56
7.1.70.0040.00516.40
7.1.60.0060.01117.61
7.1.50.0080.00816.26
7.1.40.0070.00715.74
7.1.30.0030.01015.70
7.1.20.0060.00615.74
7.1.10.0070.00715.45
7.1.00.0000.04618.90
7.0.330.0030.00915.32
7.0.320.0000.00815.32
7.0.310.0030.00915.32
7.0.300.0000.01215.32
7.0.290.0070.00715.33
7.0.280.0030.00715.32
7.0.270.0040.00815.32
7.0.260.0080.00815.37
7.0.250.0090.00615.36
7.0.240.0060.00615.32
7.0.230.0100.00015.46
7.0.220.0000.01315.34
7.0.210.0080.00615.43
7.0.200.0020.00716.12
7.0.190.0060.00315.34
7.0.180.0060.00615.39
7.0.170.0070.00715.36
7.0.160.0070.00715.32
7.0.150.0030.00615.32
7.0.140.0060.00315.32
7.0.130.0070.00715.32
7.0.120.0000.01315.54
7.0.110.0000.00815.32
7.0.100.0040.01115.41
7.0.90.0110.00415.43
7.0.80.0090.00615.40
7.0.70.0030.01315.32
7.0.60.0190.02717.61
7.0.50.0030.04516.60
7.0.40.0080.04317.71
7.0.30.0180.02217.69
7.0.20.0150.04717.83
7.0.10.0100.02217.74
7.0.00.0100.04217.79
5.6.400.0060.00315.32
5.6.390.0070.01015.32
5.6.380.0100.00015.32
5.6.370.0070.01015.32
5.6.360.0000.01415.32
5.6.350.0040.00915.32
5.6.340.0040.01115.32
5.6.330.0030.01015.32
5.6.320.0080.00615.32
5.6.310.0090.00615.32
5.6.300.0000.01515.32
5.6.290.0080.00615.32
5.6.280.0050.03818.20
5.6.270.0080.00415.32
5.6.260.0120.00015.32
5.6.250.0000.01115.32
5.6.240.0100.00315.32
5.6.230.0030.01215.32
5.6.220.0120.00315.32
5.6.210.0020.03617.97
5.6.200.0050.04416.74
5.6.190.0070.04717.99
5.6.180.0170.04317.90
5.6.170.0170.04317.95
5.6.160.0030.02517.92
5.6.150.0050.04716.80
5.6.140.0060.02816.77
5.6.130.0040.03616.73
5.6.120.0050.04418.17
5.6.110.0080.04518.18
5.6.100.0120.04518.15
5.6.90.0090.04218.18
5.6.80.0050.04517.84
5.6.70.0070.00715.32
5.6.60.0040.00415.32
5.6.50.0030.00915.32
5.6.40.0120.00015.32
5.6.30.0030.01015.32
5.6.20.0030.00615.32
5.6.10.0070.00415.32
5.6.00.0030.01015.32
5.5.380.0040.00715.32
5.5.370.0050.00515.32
5.5.360.0070.01015.32
5.5.350.0080.04217.87
5.5.340.0070.04416.68
5.5.330.0060.02317.85
5.5.320.0320.03517.82
5.5.310.0130.02117.84
5.5.300.0080.04116.70
5.5.290.0100.03416.68
5.5.280.0080.02018.06
5.5.270.0030.02718.04
5.5.260.0080.04318.04
5.5.250.0070.04518.06
5.5.240.0180.02917.79
5.5.230.0000.01315.32
5.5.220.0040.01215.32
5.5.210.0070.00715.32
5.5.200.0030.01015.32
5.5.190.0030.00815.32
5.5.180.0090.00415.32
5.5.170.0060.00615.32
5.5.160.0000.01515.32
5.5.150.0070.00715.32
5.5.140.0060.01015.32
5.5.130.0030.00715.32
5.5.120.0080.00415.32
5.5.110.0070.00315.32
5.5.100.0040.01115.32
5.5.90.0030.01015.32
5.5.80.0070.00715.32
5.5.70.0060.00715.32
5.5.60.0040.00715.32
5.5.50.0060.00315.32
5.5.40.0060.00615.32
5.5.30.0000.01515.32
5.5.20.0090.00615.32
5.5.10.0030.00615.32
5.5.00.0120.00015.32

preferences:
48.3 ms | 401 KiB | 5 Q