3v4l.org

run code in 300+ PHP versions simultaneously
<?php // http://pastebin.ca/2531805 $content_array = array ( 0 => array ( 0 => '[CONTENT HEADER]', 1 => '[LINK TEXT]', 2 => '[CONTENT IMAGE URL]', 3 => '[CONTENT TEXT]', 4 => '[ALTERNATE SUBJECT]', 5 => '[COUPON IMAGE URL]', 6 => '[COUPON HEADER]', 7 => '[COUPON CONTENT]', 8 => '[COUPON LINK]', 9 => '[recordid]', 10 => '[COUPON LINK TEXT]', ), ); $excluded_content_pieces = array( '[recordid]' ); foreach($content_array as $content_piece) { // Filter out the excluded pieces $content_piece = array_filter( $content_piece, function($a) use ($excluded_content_pieces) { return !in_array($a, $excluded_content_pieces); } ); } // Clean up $content_piece unset($content_piece); var_dump($content_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)
8.3.40.0080.00818.70
8.3.30.0070.00720.20
8.3.20.0000.00720.04
8.3.10.0080.00021.89
8.3.00.0080.00022.53
8.2.170.0170.00022.96
8.2.160.0110.00722.08
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0000.00820.75
8.2.110.0030.00622.11
8.2.100.0090.00317.72
8.2.90.0040.00419.17
8.2.80.0000.00719.25
8.2.70.0070.00317.38
8.2.60.0030.00517.93
8.2.50.0030.00618.07
8.2.40.0060.00318.03
8.2.30.0030.00319.49
8.2.20.0030.00617.57
8.2.10.0040.00417.76
8.2.00.0050.00217.72
8.1.270.0040.00423.99
8.1.260.0000.01626.35
8.1.250.0040.00428.09
8.1.240.0060.00323.87
8.1.230.0040.00719.01
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0080.00017.53
8.1.180.0050.00318.10
8.1.170.0080.00018.50
8.1.160.0070.00018.90
8.1.150.0000.00718.52
8.1.140.0000.00817.45
8.1.130.0040.00417.76
8.1.120.0000.00717.48
8.1.110.0070.00017.46
8.1.100.0040.00417.45
8.1.90.0040.00417.53
8.1.80.0040.00417.38
8.1.70.0030.00317.49
8.1.60.0030.00617.50
8.1.50.0040.00417.54
8.1.40.0030.00617.42
8.1.30.0040.00417.66
8.1.20.0030.00517.73
8.1.10.0000.00717.41
8.1.00.0030.00617.45
8.0.300.0000.00718.77
8.0.290.0070.00017.04
8.0.280.0000.00718.36
8.0.270.0070.00017.30
8.0.260.0030.00316.79
8.0.250.0030.00316.86
8.0.240.0030.00616.97
8.0.230.0040.00416.85
8.0.220.0030.00316.91
8.0.210.0030.00316.86
8.0.200.0050.00216.82
8.0.190.0000.00916.96
8.0.180.0040.00416.95
8.0.170.0040.00416.95
8.0.160.0070.00016.75
8.0.150.0040.00416.80
8.0.140.0000.00816.74
8.0.130.0000.00513.29
8.0.120.0000.00816.75
8.0.110.0050.00316.71
8.0.100.0040.00416.75
8.0.90.0030.00416.78
8.0.80.0120.00316.84
8.0.70.0050.00316.91
8.0.60.0000.00716.94
8.0.50.0000.00716.78
8.0.30.0040.01617.16
8.0.20.0090.01017.40
8.0.10.0050.00216.91
8.0.00.0070.01116.71
7.4.330.0040.00014.88
7.4.320.0000.00616.49
7.4.300.0000.00616.51
7.4.290.0030.00316.65
7.4.280.0060.00316.61
7.4.270.0030.00316.65
7.4.260.0050.00213.37
7.4.250.0050.00316.55
7.4.240.0040.00316.60
7.4.230.0000.00716.50
7.4.220.0130.00616.53
7.4.210.0090.00716.52
7.4.200.0000.00716.63
7.4.190.0080.00016.48
7.4.160.0070.01416.59
7.4.150.0070.01417.40
7.4.140.0120.00717.86
7.4.130.0120.00716.52
7.4.120.0120.00616.55
7.4.110.0100.01316.57
7.4.100.0090.00816.64
7.4.90.0150.00316.55
7.4.80.0110.00719.39
7.4.70.0060.01016.40
7.4.60.0080.01116.55
7.4.50.0050.00016.64
7.4.40.0080.00822.77
7.4.30.0110.00616.73
7.4.10.0100.00714.75
7.4.00.0060.01115.10
7.3.330.0030.00313.31
7.3.320.0060.00013.32
7.3.310.0070.00016.18
7.3.300.0000.00716.32
7.3.290.0090.00616.31
7.3.280.0080.00716.32
7.3.270.0130.00617.40
7.3.260.0120.01216.50
7.3.250.0080.01016.63
7.3.240.0160.00316.54
7.3.230.0140.00616.43
7.3.210.0120.00616.33
7.3.200.0100.01319.39
7.3.190.0120.00616.32
7.3.180.0160.00316.57
7.3.170.0070.01016.56
7.3.160.0040.01616.28
7.3.130.0070.01114.98
7.3.120.0050.01014.63
7.3.110.0030.01714.65
7.3.100.0080.00414.77
7.3.90.0080.00814.73
7.3.80.0040.01414.54
7.3.70.0070.00714.84
7.3.60.0130.00314.84
7.3.50.0040.00414.73
7.3.40.0040.00414.41
7.3.30.0040.00414.86
7.3.20.0110.00416.68
7.3.10.0040.01116.75
7.3.00.0030.01416.87
7.2.330.0100.01016.61
7.2.320.0070.01016.64
7.2.310.0210.00316.57
7.2.300.0030.01316.38
7.2.290.0030.01316.46
7.2.260.0130.00715.26
7.2.250.0060.01215.22
7.2.240.0090.00614.94
7.2.230.0030.01414.71
7.2.220.0090.00615.19
7.2.210.0040.00714.84
7.2.200.0060.00914.99
7.2.190.0030.00915.00
7.2.180.0060.00615.18
7.2.170.0030.00615.04
7.2.160.0030.01215.03
7.2.150.0090.00016.73
7.2.140.0030.01417.05
7.2.130.0040.00816.98
7.2.120.0030.01416.93
7.2.110.0060.00917.04
7.2.100.0030.00717.08
7.2.90.0090.00617.14
7.2.80.0110.00316.93
7.2.70.0000.01217.09
7.2.60.0060.00916.99
7.2.50.0030.01416.56
7.2.40.0030.01316.81
7.2.30.0060.00917.00
7.2.20.0100.00316.88
7.2.10.0090.00616.89
7.2.00.0080.00618.23
7.1.330.0030.00916.04
7.1.320.0090.00615.73
7.1.310.0070.00715.71
7.1.300.0000.00815.91
7.1.290.0060.00615.74
7.1.280.0030.00615.89
7.1.270.0060.00815.43
7.1.260.0030.00715.90
7.1.250.0030.00916.04
7.1.240.0040.01115.79
7.1.230.0000.01515.89
7.1.220.0070.01315.91
7.1.210.0040.01115.93
7.1.200.0030.01015.69
7.1.190.0030.00815.98
7.1.180.0070.00715.95
7.1.170.0060.00615.76
7.1.160.0070.00715.84
7.1.150.0100.00315.98
7.1.140.0070.01115.89
7.1.130.0110.00715.84
7.1.120.0080.00515.54
7.1.110.0000.00915.60
7.1.100.0020.01016.79
7.1.90.0000.01415.71
7.1.80.0000.01516.03
7.1.70.0060.00516.32
7.1.60.0050.01317.51
7.1.50.0080.00916.29
7.1.40.0050.00515.77
7.1.30.0060.00615.61
7.1.20.0090.00315.94
7.1.10.0040.01115.82
7.1.00.0040.02019.03
7.0.330.0060.00615.01
7.0.320.0060.00315.61
7.0.310.0070.00715.19
7.0.300.0070.00715.34
7.0.290.0040.01115.52
7.0.280.0030.00915.38
7.0.270.0040.00415.44
7.0.260.0060.00615.16
7.0.250.0040.01115.46
7.0.240.0080.00815.61
7.0.230.0040.01115.39
7.0.220.0050.00315.40
7.0.210.0060.00915.51
7.0.200.0050.00716.00
7.0.190.0070.00715.40
7.0.180.0090.00615.56
7.0.170.0080.00815.50
7.0.160.0060.00615.36
7.0.150.0080.00415.24
7.0.140.0050.04018.76
7.0.130.0000.01215.38
7.0.120.0060.00915.30
7.0.110.0000.01215.32
7.0.100.0060.04417.64
7.0.90.0120.04017.56
7.0.80.0110.03417.79
7.0.70.0100.03817.73
7.0.60.0050.04517.57
7.0.50.0070.04417.83
7.0.40.0100.03816.88
7.0.30.0080.04216.65
7.0.20.0060.04116.65
7.0.10.0030.04516.77
7.0.00.0070.04616.77
5.6.400.0110.00414.32
5.6.390.0100.00314.09
5.6.380.0140.00414.25
5.6.370.0030.00614.38
5.6.360.0080.00614.51
5.6.350.0040.01114.71
5.6.340.0070.00714.36
5.6.330.0030.00914.50
5.6.320.0100.00314.46
5.6.310.0110.00414.51
5.6.300.0000.01114.59
5.6.290.0000.01514.07
5.6.280.0040.04117.81
5.6.270.0070.01014.68
5.6.260.0030.00914.49
5.6.250.0100.03917.41
5.6.240.0150.03817.63
5.6.230.0160.04117.58
5.6.220.0030.04517.38
5.6.210.0070.04617.40
5.6.200.0070.04417.70
5.6.190.0060.04017.60
5.6.180.0060.04817.67
5.6.170.0070.04817.79
5.6.160.0060.04317.73
5.6.150.0120.04017.60
5.6.140.0030.04617.71
5.6.130.0080.02717.72
5.6.120.0070.04517.56
5.6.110.0050.04717.63
5.6.100.0100.04017.63
5.6.90.0120.03817.81
5.6.80.0050.04017.30
5.6.70.0070.04717.41
5.6.60.0030.04417.49
5.6.50.0060.03117.34
5.6.40.0080.04317.30
5.6.30.0090.04017.42
5.6.20.0100.04017.33
5.6.10.0030.05117.25
5.6.00.0080.03317.24
5.5.380.0050.04717.43
5.5.370.0140.03517.27
5.5.360.0030.04517.40
5.5.350.0080.04217.40
5.5.340.0080.04717.39
5.5.330.0070.04217.57
5.5.320.0150.03617.43
5.5.310.0090.04317.57
5.5.300.0150.03517.56
5.5.290.0050.04617.62
5.5.280.0130.03017.47
5.5.270.0090.04017.47
5.5.260.0070.04317.37
5.5.250.0060.02817.50
5.5.240.0090.04317.33
5.5.230.0020.04417.13
5.5.220.0060.04117.21
5.5.210.0080.03817.27
5.5.200.0060.04017.22
5.5.190.0080.04017.28
5.5.180.0070.04317.10
5.5.170.0040.00814.32
5.5.160.0050.02817.22
5.5.150.0050.02517.14
5.5.140.0090.02217.24
5.5.130.0070.03217.22
5.5.120.0080.02117.17
5.5.110.0060.02117.12
5.5.100.0030.02917.28
5.5.90.0070.02317.05
5.5.80.0040.02117.04
5.5.70.0050.02517.20
5.5.60.0030.02317.09
5.5.50.0070.03717.02
5.5.40.0140.03317.22
5.5.30.0030.02417.02
5.5.20.0080.03817.32
5.5.10.0020.02517.16
5.5.00.0030.03817.05
5.4.450.0080.04316.05
5.4.440.0040.04316.05
5.4.430.0030.02616.05
5.4.420.0080.03916.07
5.4.410.0030.04315.84
5.4.400.0050.04215.78
5.4.390.0050.02815.78
5.4.380.0000.04615.78
5.4.370.0070.02715.87
5.4.360.0040.03815.75
5.4.350.0050.04115.82
5.4.340.0070.04015.91
5.4.330.0150.00012.60
5.4.320.0120.03515.92
5.4.310.0030.02715.82
5.4.300.0050.03815.82
5.4.290.0030.03415.78
5.4.280.0030.02215.80
5.4.270.0020.02715.86
5.4.260.0030.02315.75
5.4.250.0030.02115.74
5.4.240.0050.02015.91
5.4.230.0080.02015.91
5.4.220.0010.02615.81
5.4.210.0050.01815.86
5.4.200.0020.04515.91
5.4.190.0050.03815.77
5.4.180.0080.04215.87
5.4.170.0050.03815.73
5.4.160.0040.02015.81
5.4.150.0020.03415.81
5.4.140.0040.02214.48
5.4.130.0060.01714.47
5.4.120.0030.02214.43
5.4.110.0040.01814.48
5.4.100.0010.02214.45
5.4.90.0020.04014.52
5.4.80.0060.02314.48
5.4.70.0050.02014.47
5.4.60.0060.02314.54
5.4.50.0070.01814.55
5.4.40.0050.02214.49
5.4.30.0000.02914.56
5.4.20.0020.02214.48
5.4.10.0000.02614.53
5.4.00.0070.02014.23
5.3.290.0060.02413.63
5.3.280.0070.01513.57
5.3.270.0070.03813.62
5.3.260.0030.02113.57
5.3.250.0090.02613.65
5.3.240.0110.02113.67
5.3.230.0030.02513.56
5.3.220.0020.02313.62
5.3.210.0000.02513.55
5.3.200.0020.02913.65
5.3.190.0050.02313.59
5.3.180.0030.02313.57
5.3.170.0070.01813.59
5.3.160.0110.02513.61
5.3.150.0040.03113.63
5.3.140.0050.01813.61
5.3.130.0020.02213.57
5.3.120.0020.02713.64
5.3.110.0060.01813.55
5.3.100.0020.02313.30
5.3.90.0040.01913.30
5.3.80.0020.02113.34
5.3.70.0030.02213.34
5.3.60.0030.02013.33
5.3.50.0050.02213.35
5.3.40.0030.02313.35
5.3.30.0060.03113.31
5.3.20.0050.01813.11
5.3.10.0030.03313.18
5.3.00.0050.04113.17
5.2.170.0100.02011.06
5.2.160.0030.02710.99
5.2.150.0100.03311.13
5.2.140.0000.03311.09
5.2.130.0030.03011.09
5.2.120.0070.03310.95
5.2.110.0030.03011.10
5.2.100.0030.06010.94
5.2.90.0070.05710.96
5.2.80.0100.05711.18
5.2.70.0000.05011.14
5.2.60.0000.06711.12
5.2.50.0100.06011.02
5.2.40.0030.05710.95
5.2.30.0070.06310.78
5.2.20.0100.05710.81
5.2.10.0030.06310.72
5.2.00.0000.06710.77
5.1.60.0030.05310.04
5.1.50.0070.05710.00
5.1.40.0030.0579.98
5.1.30.0070.05710.39
5.1.20.0070.05310.21
5.1.10.0070.04010.09
5.1.00.0070.05310.14
5.0.50.0070.0239.79
5.0.40.0030.0409.79
5.0.30.0030.0379.79
5.0.20.0100.0379.79
5.0.10.0070.0409.79
5.0.00.0070.0609.79
4.4.90.0000.0309.79
4.4.80.0030.0339.79
4.4.70.0000.0379.79
4.4.60.0100.0309.79
4.4.50.0030.0239.79
4.4.40.0030.0509.79
4.4.30.0030.0379.79
4.4.20.0030.0339.79
4.4.10.0070.0339.79
4.4.00.0000.0479.79
4.3.110.0000.0409.79
4.3.100.0000.0379.79
4.3.90.0030.0279.79
4.3.80.0000.0579.79
4.3.70.0000.0409.79
4.3.60.0000.0379.79
4.3.50.0070.0339.79
4.3.40.0000.0539.79
4.3.30.0000.0409.79
4.3.20.0070.0339.79
4.3.10.0000.0409.79
4.3.00.0000.0379.79

preferences:
55.54 ms | 400 KiB | 5 Q