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', array(array(array(array(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('name', 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.60.0130.00916.63
8.3.50.0120.00716.62
8.3.40.0120.00318.79
8.3.30.0060.00918.84
8.3.20.0050.00318.82
8.3.10.0040.00420.66
8.3.00.0080.00019.26
8.2.180.0140.00716.75
8.2.170.0110.00422.96
8.2.160.0100.00320.43
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00319.83
8.2.110.0060.00320.58
8.2.100.0040.00817.84
8.2.90.0040.00419.39
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0000.00817.80
8.2.50.0030.00518.07
8.2.40.0030.00618.16
8.2.30.0000.00819.54
8.2.20.0050.00317.62
8.2.10.0020.00517.78
8.2.00.0100.00017.62
8.1.280.0030.01225.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0110.00023.92
8.1.230.0080.00320.95
8.1.220.0000.00818.77
8.1.210.0090.00018.90
8.1.200.0040.00417.23
8.1.190.0000.00717.50
8.1.180.0080.00018.10
8.1.170.0030.00518.70
8.1.160.0040.00418.93
8.1.150.0060.00318.58
8.1.140.0070.00017.36
8.1.130.0000.00717.72
8.1.120.0050.00317.36
8.1.110.0030.00517.51
8.1.100.0030.00517.45
8.1.90.0030.00617.35
8.1.80.0000.00717.36
8.1.70.0030.00317.43
8.1.60.0000.00817.53
8.1.50.0000.00717.48
8.1.40.0060.00317.43
8.1.30.0030.00617.68
8.1.20.0080.00017.68
8.1.10.0050.00317.38
8.1.00.0040.00717.43
8.0.300.0070.00019.66
8.0.290.0080.00017.18
8.0.280.0000.00718.28
8.0.270.0040.00416.75
8.0.260.0080.00016.80
8.0.250.0000.00816.75
8.0.240.0040.00416.89
8.0.230.0070.00016.84
8.0.220.0000.00816.72
8.0.210.0030.00316.82
8.0.200.0070.00016.77
8.0.190.0040.00416.92
8.0.180.0040.00416.88
8.0.170.0000.00816.75
8.0.160.0000.00716.89
8.0.150.0000.00816.79
8.0.140.0040.00416.79
8.0.130.0000.00513.24
8.0.120.0040.00416.64
8.0.110.0040.00416.74
8.0.100.0040.00416.72
8.0.90.0000.00816.87
8.0.80.0070.01416.83
8.0.70.0040.00416.81
8.0.60.0070.00016.93
8.0.50.0000.00716.80
8.0.30.0110.01117.12
8.0.20.0080.01417.12
8.0.10.0000.00716.80
8.0.00.0160.00516.66
7.4.330.0000.00512.86
7.4.320.0030.00316.58
7.4.300.0060.00016.42
7.4.290.0040.00416.46
7.4.280.0040.00416.54
7.4.270.0030.00316.49
7.4.260.0030.00313.19
7.4.250.0100.00016.39
7.4.240.0000.00716.51
7.4.230.0000.00716.53
7.4.220.0060.01216.33
7.4.210.0070.00916.52
7.4.200.0030.00316.52
7.4.190.0040.00416.69
7.4.160.0130.01016.42
7.4.150.0100.01016.52
7.4.140.0120.00616.36
7.4.130.0120.00716.34
7.4.120.0100.00916.38
7.4.110.0090.01216.38
7.4.100.0050.01116.31
7.4.90.0110.00616.41
7.4.80.0120.01116.40
7.4.70.0140.00816.11
7.4.60.0120.00916.38
7.4.50.0020.00516.49
7.4.40.0090.00316.21
7.4.30.0170.00016.57
7.4.00.0070.01114.54
7.3.330.0000.00613.14
7.3.320.0060.00013.15
7.3.310.0030.00316.22
7.3.300.0040.00416.04
7.3.290.0090.00616.17
7.3.280.0100.00816.16
7.3.270.0140.00416.45
7.3.260.0090.01116.13
7.3.250.0110.01116.23
7.3.240.0160.00016.21
7.3.230.0120.00616.47
7.3.210.0100.00616.34
7.3.200.0090.01319.39
7.3.190.0030.01416.46
7.3.180.0100.00616.23
7.3.170.0060.01116.22
7.3.160.0090.01316.35
7.3.120.0040.00414.71
7.2.330.0050.01416.54
7.2.320.0140.00716.61
7.2.310.0120.00616.45
7.2.300.0080.00816.43
7.2.290.0030.01316.66
7.2.00.0030.01019.37
7.1.200.0040.01115.68
7.1.100.0030.01018.14
7.1.70.0040.00417.17
7.1.60.0090.01619.40
7.1.50.0090.01316.73
7.1.00.0000.07722.45
7.0.200.0040.00416.66
7.0.140.0000.07722.05
7.0.120.0000.07722.09
7.0.60.0030.09019.86
7.0.50.0070.04717.86
7.0.40.0030.04320.11
7.0.30.0270.07020.11
7.0.20.0230.05720.26
7.0.10.0100.08320.08
7.0.00.0030.04320.33
5.6.280.0000.07020.81
5.6.210.0130.06720.57
5.6.200.0070.05718.20
5.6.190.0100.05020.61
5.6.180.0230.03720.57
5.6.170.0130.04320.51
5.6.160.0030.04720.54
5.6.150.0070.04318.16
5.6.140.0000.05318.20
5.6.130.0030.08718.19
5.6.120.0100.08320.96
5.6.110.0270.06320.90
5.6.100.0100.08721.01
5.6.90.0100.03720.95
5.6.80.0070.07720.34
5.6.70.2400.03720.42
5.5.350.0370.05320.47
5.5.340.0170.03717.98
5.5.330.0100.04720.32
5.5.320.0270.04020.28
5.5.310.0270.06320.34
5.5.300.0030.04318.08
5.5.290.0130.08017.95
5.5.280.0070.05720.77
5.5.270.0000.04320.89
5.5.260.0170.07020.90
5.5.250.0030.06720.59
5.5.240.0300.07020.26
5.4.450.0030.04019.20
5.4.440.0000.05019.28
5.4.430.0070.04319.52
5.4.420.0030.04319.30
5.4.410.0030.07019.18
5.4.400.0000.05719.13
5.4.390.0100.04018.85
5.4.380.0070.04319.16
5.4.370.0000.08718.86
5.4.360.0130.03318.99
5.4.350.0030.08019.20
5.4.340.0000.04719.24
5.4.320.0070.05718.92
5.4.310.0100.07318.98
5.4.300.0030.07319.14
5.4.290.0030.08018.85
5.4.280.0070.07019.23
5.4.270.0100.04319.23
5.4.260.0170.04718.92
5.4.250.0030.08319.14
5.4.240.0130.07019.11
5.4.230.0000.08318.86
5.4.220.0100.07319.16
5.4.210.0200.04019.00
5.4.200.0100.05319.24
5.4.190.0130.07019.23
5.4.180.0130.07318.93
5.4.170.0100.07318.86
5.4.160.0030.08319.23
5.4.150.0000.06719.13
5.4.140.0070.06016.32
5.4.130.0070.04316.37
5.4.120.0130.04016.37
5.4.110.0070.06016.42
5.4.100.0030.06716.45
5.4.90.0030.07016.41
5.4.80.0170.06716.29
5.4.70.0070.03316.46
5.4.60.0130.06016.41
5.4.50.0070.07716.64
5.4.40.0130.06716.36
5.4.30.0130.06316.27
5.4.20.0130.04316.42
5.4.10.0070.07016.44
5.4.00.0070.04015.90
5.3.290.0100.07314.55
5.3.280.0100.07314.65
5.3.270.0070.07014.66
5.3.260.0100.06714.61
5.3.250.0100.04714.63
5.3.240.0000.05014.64
5.3.230.0130.07314.61
5.3.220.0030.07714.62
5.3.210.0070.07714.61
5.3.200.0070.07314.60
5.3.190.0130.07314.56
5.3.180.0130.07014.57
5.3.170.0130.03014.57
5.3.160.0030.05314.60
5.3.150.0000.05314.59
5.3.140.0130.05714.55
5.3.130.0030.05714.70
5.3.120.0130.05014.58
5.3.110.0070.07314.60
5.3.100.0100.07013.96
5.3.90.0170.06714.05
5.3.80.0170.05713.97
5.3.70.0100.07014.06
5.3.60.0170.06313.95
5.3.50.0070.06714.03
5.3.40.0000.05313.96
5.3.30.0000.07013.88
5.3.20.0000.08013.74
5.3.10.0070.05313.61
5.3.00.0000.05313.64
5.2.170.0030.04711.07
5.2.160.0070.05311.23
5.2.150.0130.04711.15
5.2.140.0070.05711.14
5.2.130.0130.05311.11
5.2.120.0030.05011.14
5.2.110.0030.05711.16
5.2.100.0100.03311.07
5.2.90.0070.06011.06
5.2.80.0030.05311.14
5.2.70.0070.05011.17
5.2.60.0030.03711.10
5.2.50.0070.03011.00
5.2.40.0030.06310.96
5.2.30.0030.05010.86
5.2.20.0070.03311.01
5.2.10.0070.05710.83
5.2.00.0070.06010.73
5.1.60.0070.05010.14
5.1.50.0030.05710.02
5.1.40.0030.0339.96
5.1.30.0130.03010.34
5.1.20.0000.03310.37
5.1.10.0030.0539.98
5.1.00.0070.0539.98
5.0.50.0000.0238.57
5.0.40.0000.0438.56
5.0.30.0000.0338.28
5.0.20.0030.0408.34
5.0.10.0000.0378.23
5.0.00.0030.0478.18
4.4.90.0000.0278.18
4.4.80.0000.0238.18
4.4.70.0000.0178.18
4.4.60.0070.0338.18
4.4.50.0030.0238.18
4.4.40.0000.0578.18
4.4.30.0000.0378.18
4.4.20.0030.0378.18
4.4.10.0000.0278.18
4.4.00.0000.0238.18
4.3.110.0000.0238.18
4.3.100.0100.0278.18
4.3.90.0070.0178.18
4.3.80.0070.0508.18
4.3.70.0070.0308.18
4.3.60.0000.0308.18
4.3.50.0000.0338.18
4.3.40.0000.0278.18
4.3.30.0000.0408.18
4.3.20.0000.0308.18
4.3.10.0000.0338.18
4.3.00.0030.0308.18

preferences:
35.41 ms | 401 KiB | 5 Q