3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-type: text/plain charset=UTF-8;"); $in = array( 'meta_data' => 'querysucceful!', 'size' => 15, 'resultset'=> array( array( 'name' => 'resul_1', 'aaaa' => '1a', 'bbbb' => '1b' ), array( 'name' => 'result_2', 'aaaa' => '2a', 'bbbb' => '2b' ), array( 'name' => 'result_3', 'aaaa' => '3a', 'bbbb' => '3b' ) ) ); $filter = array( 'meta_data' => FILTER_SANITIZE_STRING, 'size' => FILTER_SANITIZE_NUMBER_INT, 'resultset' => array('filter' => FILTER_CALLBACK, 'options' => 'filter_result') ); $out = filter_var_array($in, $filter); var_dump($out); function filter_result($result) { var_dump($result); return null; }

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.0110.00418.79
8.3.30.0110.00718.89
8.3.20.0000.00918.42
8.3.10.0050.00320.52
8.3.00.0030.00719.25
8.2.170.0040.01122.96
8.2.160.0140.01022.13
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.88
8.2.110.0000.01021.91
8.2.100.0040.00818.03
8.2.90.0040.00419.41
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0060.00318.05
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0000.00819.92
8.2.20.0050.00317.59
8.2.10.0040.00417.77
8.2.00.0070.00017.75
8.1.270.0030.00723.99
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0060.00319.21
8.1.230.0000.01117.83
8.1.220.0060.00317.74
8.1.210.0000.00918.77
8.1.200.0050.00517.35
8.1.190.0000.00717.53
8.1.180.0040.00418.10
8.1.170.0080.00018.84
8.1.160.0020.00518.89
8.1.150.0040.00418.74
8.1.140.0000.00717.41
8.1.130.0070.00017.45
8.1.120.0040.00317.48
8.1.110.0000.00817.29
8.1.100.0000.00717.32
8.1.90.0000.00817.44
8.1.80.0040.00417.49
8.1.70.0030.00317.44
8.1.60.0030.00517.54
8.1.50.0040.00417.48
8.1.40.0040.00717.53
8.1.30.0040.00417.56
8.1.20.0090.00017.69
8.1.10.0040.00417.49
8.1.00.0030.00617.32
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.32
8.0.270.0000.00717.25
8.0.260.0030.00316.75
8.0.250.0000.00716.81
8.0.240.0030.00616.95
8.0.230.0040.00416.84
8.0.220.0000.00816.74
8.0.210.0080.00016.89
8.0.200.0020.00516.82
8.0.190.0070.00016.77
8.0.180.0080.00016.82
8.0.170.0040.00416.69
8.0.160.0000.00716.80
8.0.150.0040.00416.74
8.0.140.0030.00616.80
8.0.130.0060.00013.21
8.0.120.0020.00516.64
8.0.110.0050.00316.71
8.0.100.0040.00416.70
8.0.90.0000.00816.85
8.0.80.0040.01116.80
8.0.70.0040.00416.77
8.0.60.0020.00516.89
8.0.50.0000.00816.70
8.0.30.0080.01116.86
8.0.20.0080.01117.40
8.0.10.0000.00716.79
8.0.00.0120.01716.66
7.4.330.0000.00513.43
7.4.320.0030.00316.53
7.4.300.0040.00416.48
7.4.290.0040.00416.45
7.4.280.0040.00416.52
7.4.270.0000.00716.52
7.4.260.0000.00513.25
7.4.250.0030.00616.40
7.4.240.0070.00016.42
7.4.230.0070.00016.55
7.4.220.0080.01716.47
7.4.210.0100.00816.52
7.4.200.0070.00016.28
7.4.190.0040.00416.53
7.4.160.0130.00316.46
7.4.150.0060.01317.40
7.4.140.0100.00717.15
7.4.130.0160.00816.31
7.4.120.0110.00816.42
7.4.110.0070.01416.29
7.4.100.0120.01216.38
7.4.90.0030.02016.28
7.4.80.0090.00919.03
7.4.70.0080.00916.30
7.4.60.0030.01716.31
7.4.50.0000.00816.42
7.4.40.0160.00422.27
7.4.30.0130.00316.39
7.4.00.0070.00714.57
7.3.330.0000.00513.03
7.3.320.0000.00513.12
7.3.310.0000.00816.18
7.3.300.0070.00016.12
7.3.290.0150.00316.30
7.3.280.0070.00916.18
7.3.270.0150.00717.40
7.3.260.0170.00518.24
7.3.250.0120.00616.21
7.3.240.0050.01416.26
7.3.230.0100.00616.39
7.3.210.0030.01616.52
7.3.200.0070.01419.39
7.3.190.0100.01016.40
7.3.180.0120.00416.40
7.3.170.0030.01316.51
7.3.160.0080.00816.14
7.3.120.0000.01814.70
7.2.330.0100.01716.29
7.2.320.0150.00316.46
7.2.310.0080.01216.65
7.2.300.0030.01716.56
7.2.290.0100.00716.39
7.2.110.0060.00816.33
7.2.00.0030.01019.42
7.1.200.0060.00615.66
7.1.100.0000.01217.89
7.1.70.0060.00317.12
7.1.60.0060.01919.40
7.1.50.0090.01216.98
7.1.00.0000.08022.44
7.0.200.0250.00314.77
7.0.140.0070.07022.07
7.0.60.0070.07019.90
7.0.50.0070.08017.86
7.0.40.0000.05019.96
7.0.30.0030.04320.26
7.0.20.0030.04320.16
7.0.10.0100.04720.25
7.0.00.0070.04320.28
5.6.280.0070.07320.98
5.6.210.0200.07320.48
5.6.200.0000.06718.34
5.6.190.0070.08320.48
5.6.180.0070.04320.46
5.6.170.0000.04720.61
5.6.160.0030.04020.61
5.6.150.0000.05320.32
5.6.140.0030.04320.18
5.6.130.0070.04020.25
5.6.120.0000.04320.18
5.6.110.0030.04020.32
5.6.100.0000.05020.48
5.6.90.0070.04020.28
5.6.80.0000.04319.72
5.6.70.0230.03019.55
5.6.60.0030.04019.87
5.6.50.0070.03719.56
5.6.40.0100.03319.88
5.6.30.0030.04019.73
5.6.20.0070.03719.68
5.6.10.0100.03319.53
5.6.00.0030.04719.53
5.5.350.0270.08020.41
5.5.340.0100.04717.94
5.5.330.0070.05020.35
5.5.320.0070.04020.32
5.5.310.0070.04020.29
5.5.300.0070.04020.20
5.5.290.0070.04020.21
5.5.280.0030.04320.29
5.5.270.0000.04320.20
5.5.260.0130.03320.22
5.5.250.0070.04020.01
5.5.240.0070.04019.36
5.5.230.0000.04319.34
5.5.220.0070.04019.41
5.5.210.0100.03319.55
5.5.200.0000.04319.32
5.5.190.0000.04319.52
5.5.180.0030.04019.56
5.5.160.0000.04319.59
5.5.150.0100.04719.55
5.5.140.0030.04319.47
5.5.130.0130.06319.47
5.5.120.0170.07019.66
5.5.110.0100.08019.46
5.5.100.0100.07719.49
5.5.90.0100.05019.57
5.5.80.0070.05319.21
5.5.70.0000.08719.21
5.5.60.0070.08019.41
5.5.50.0130.07019.44
5.5.40.0030.07019.43
5.5.30.0030.08019.50
5.5.20.0100.05319.43
5.5.10.0030.08719.21
5.5.00.0070.04019.46
5.4.450.0030.04019.18
5.4.440.0070.03719.46
5.4.430.0000.05019.30
5.4.420.0000.04019.17
5.4.410.0000.04019.27
5.4.400.0070.03319.19
5.4.390.0030.03719.11
5.4.380.0030.03719.25
5.4.370.0100.03019.15
5.4.360.0030.04019.24
5.4.350.0070.03318.97
5.4.340.0000.04019.08
5.4.320.0000.04319.24
5.4.310.0030.06019.24
5.4.300.0130.06019.02
5.4.290.0070.04019.08
5.4.280.0030.05718.87
5.4.270.0070.04719.00
5.4.260.0170.05719.17
5.4.250.0130.05019.16
5.4.240.0030.04318.84
5.4.230.0000.05319.11
5.4.220.0130.07018.91
5.4.210.0070.04718.97
5.4.200.0130.07319.09
5.4.190.0130.07719.25
5.4.180.0070.03719.07
5.4.170.0100.04318.99
5.4.160.0130.06719.13
5.4.150.0030.04319.15
5.4.140.0070.05016.56
5.4.130.0130.06716.50
5.4.120.0030.07016.50
5.4.110.0200.05716.55
5.4.100.0200.06316.30
5.4.90.0000.07716.38
5.4.80.0030.03716.44
5.4.70.0070.06016.50
5.4.60.0000.04716.25
5.4.50.0070.07016.34
5.4.40.0030.07716.40
5.4.30.0030.06316.36
5.4.20.0070.03316.39
5.4.10.0030.08016.35
5.4.00.0070.07315.76
5.3.290.0030.03714.81
5.3.280.0130.06714.52
5.3.270.0000.07014.61
5.3.260.0070.07314.64
5.3.250.0000.07014.68
5.3.240.0100.06014.76
5.3.230.0170.06014.53
5.3.220.0070.05014.61
5.3.210.0070.04314.62
5.3.200.0070.06314.60
5.3.190.0100.07314.74
5.3.180.0070.07014.63
5.3.170.0070.03714.61
5.3.160.0130.06314.59
5.3.150.0070.07014.62
5.3.140.0000.08014.71
5.3.130.0000.08314.71
5.3.120.0030.04014.56
5.3.110.0030.03714.51
5.3.100.0030.04714.09
5.3.90.0000.05014.05
5.3.80.0070.05314.07
5.3.70.0170.07314.18
5.3.60.0000.07314.00
5.3.50.0000.05313.96
5.3.40.0030.04014.00
5.3.30.0130.07013.93
5.3.20.0030.07713.74
5.3.10.0070.04313.81
5.3.00.0130.06013.70
5.2.170.0000.03711.23
5.2.160.0070.04311.15
5.2.150.0000.06011.16
5.2.140.0030.06011.04
5.2.130.0070.05311.11
5.2.120.0100.05711.06
5.2.110.0000.03310.98
5.2.100.0030.03711.15
5.2.90.0100.05711.11
5.2.80.0000.06711.13
5.2.70.0200.03011.03
5.2.60.0030.05011.20
5.2.50.0070.06011.01
5.2.40.0070.05010.99
5.2.30.0030.03711.02
5.2.20.0100.04310.99
5.2.10.0070.02710.92
5.2.00.0070.06310.72
5.1.60.0000.03710.00
5.1.50.0000.0279.96
5.1.40.0070.05010.05
5.1.30.0070.05710.34
5.1.20.0000.04010.27
5.1.10.0000.03710.13
5.1.00.0030.05310.13
5.0.50.0030.0478.57
5.0.40.0000.0238.43
5.0.30.0070.0378.37
5.0.20.0000.0278.26
5.0.10.0030.0208.14
5.0.00.0000.0338.14
4.4.90.0070.0307.43
4.4.80.0000.0377.43
4.4.70.0030.0177.43
4.4.60.0000.0177.43
4.4.50.0030.0377.43
4.4.40.0000.0277.43
4.4.30.0100.0307.43
4.4.20.0030.0207.43
4.4.10.0030.0177.43
4.4.00.0070.0477.43
4.3.110.0000.0337.43
4.3.100.0000.0177.43
4.3.90.0000.0377.43
4.3.80.0070.0207.43
4.3.70.0030.0337.43
4.3.60.0070.0207.43
4.3.50.0000.0307.43
4.3.40.0070.0307.43
4.3.30.0070.0307.43
4.3.20.0000.0207.43
4.3.10.0030.0137.43
4.3.00.0000.0177.43

preferences:
43.18 ms | 400 KiB | 5 Q