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('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.0070.01416.75
8.3.50.0140.00716.42
8.3.40.0040.01118.84
8.3.30.0060.00918.85
8.3.20.0080.00018.77
8.3.10.0060.00320.59
8.3.00.0080.00019.38
8.2.180.0100.01016.48
8.2.170.0150.00022.96
8.2.160.0070.00720.39
8.2.150.0100.00025.66
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0040.00420.79
8.2.110.0140.01022.11
8.2.100.0060.00617.78
8.2.90.0040.00419.22
8.2.80.0000.00917.97
8.2.70.0060.00317.50
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0050.00318.34
8.2.30.0080.00018.18
8.2.20.0070.00319.45
8.2.10.0050.00317.76
8.2.00.0000.00817.74
8.1.280.0070.01425.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00622.74
8.1.230.0080.00318.99
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0050.00317.41
8.1.180.0040.00418.10
8.1.170.0040.00418.82
8.1.160.0040.00418.80
8.1.150.0000.00718.59
8.1.140.0000.00817.32
8.1.130.0070.00017.77
8.1.120.0030.00317.36
8.1.110.0000.00817.45
8.1.100.0000.00717.40
8.1.90.0050.00217.42
8.1.80.0040.00417.39
8.1.70.0000.00717.41
8.1.60.0000.00817.63
8.1.50.0040.00417.51
8.1.40.0040.00417.49
8.1.30.0030.00617.64
8.1.20.0000.00817.66
8.1.10.0000.00717.58
8.1.00.0000.00817.35
8.0.300.0020.00518.77
8.0.290.0070.00016.63
8.0.280.0000.00718.36
8.0.270.0070.00017.23
8.0.260.0030.00316.80
8.0.250.0040.00416.79
8.0.240.0070.00016.89
8.0.230.0070.00016.93
8.0.220.0030.00316.82
8.0.210.0050.00316.84
8.0.200.0000.00716.75
8.0.190.0040.00416.90
8.0.180.0000.00716.73
8.0.170.0030.00516.70
8.0.160.0040.00416.79
8.0.150.0080.00016.85
8.0.140.0030.00516.81
8.0.130.0000.00613.21
8.0.120.0090.00016.76
8.0.110.0000.00816.71
8.0.100.0050.00316.69
8.0.90.0030.00316.82
8.0.80.0130.00716.84
8.0.70.0000.00716.62
8.0.60.0080.00016.65
8.0.50.0000.00816.71
8.0.30.0090.00917.08
8.0.20.0090.01516.90
8.0.10.0000.00716.83
8.0.00.0110.00916.79
7.4.330.0050.00012.93
7.4.320.0060.00016.54
7.4.300.0000.00616.38
7.4.290.0000.00716.54
7.4.280.0050.00316.58
7.4.270.0040.00416.59
7.4.260.0000.00513.26
7.4.250.0030.00616.40
7.4.240.0030.00316.56
7.4.230.0080.00016.42
7.4.220.0100.01016.47
7.4.210.0060.00916.61
7.4.200.0050.00316.46
7.4.190.0030.00316.43
7.4.160.0100.01016.27
7.4.150.0150.00316.54
7.4.140.0160.01216.50
7.4.130.0240.01616.56
7.4.120.0170.00316.41
7.4.110.0140.00616.35
7.4.100.0110.01116.39
7.4.90.0130.00716.40
7.4.80.0060.01419.39
7.4.70.0140.00416.34
7.4.60.0130.01016.39
7.4.50.0030.00316.20
7.4.40.0080.00316.08
7.4.30.0140.00316.36
7.4.00.0030.00714.88
7.3.330.0060.00013.03
7.3.320.0000.00513.12
7.3.310.0000.00716.17
7.3.300.0000.00716.04
7.3.290.0080.00716.14
7.3.280.0120.00616.22
7.3.270.0100.01016.41
7.3.260.0190.00616.07
7.3.250.0130.00816.37
7.3.240.0100.00716.33
7.3.230.0040.01316.33
7.3.210.0060.01516.09
7.3.200.0030.02116.08
7.3.190.0130.01116.30
7.3.180.0100.00716.22
7.3.170.0100.00616.35
7.3.160.0130.00316.50
7.3.120.0030.01014.55
7.2.330.0070.01116.57
7.2.320.0090.00916.43
7.2.310.0090.01516.62
7.2.300.0120.00616.34
7.2.290.0190.00316.41
7.2.60.0000.01516.86
7.2.00.0110.00419.39
7.1.200.0120.00015.86
7.1.100.0900.00716.11
7.1.70.0060.00317.23
7.1.60.0100.01319.17
7.1.50.0130.01016.87
7.1.00.0030.06722.46
7.0.200.0480.00014.83
7.0.140.0100.07021.97
7.0.120.0000.07722.05
7.0.60.0100.07719.86
7.0.50.0100.07717.73
7.0.40.0030.06320.05
7.0.30.0270.07320.15
7.0.20.0230.08320.27
7.0.10.0100.08720.31
7.0.00.0030.09020.05
5.6.210.0070.04020.77
5.6.200.0100.06018.25
5.6.190.0100.03720.50
5.6.180.0570.04320.41
5.6.170.0270.07720.47
5.6.160.0030.04020.61
5.6.150.0130.07718.18
5.6.140.0000.05018.16
5.6.130.0130.07318.26
5.6.120.0030.04321.04
5.6.110.0130.08321.01
5.6.100.0130.08021.00
5.6.90.0030.05320.99
5.6.80.0170.07020.43
5.5.350.0270.08320.43
5.5.340.0170.05017.97
5.5.330.0030.04320.30
5.5.320.0170.06020.51
5.5.310.0430.04720.28
5.5.300.0030.05717.94
5.5.290.0170.06717.92
5.5.280.0030.08020.69
5.5.270.0100.07720.77
5.5.260.0030.07320.87
5.5.250.0100.06320.69
5.5.240.0000.07720.08
5.4.450.0030.05019.59
5.4.440.0100.04719.56
5.4.430.0000.05719.47
5.4.420.0030.04019.46
5.4.410.0130.04019.20
5.4.400.0130.04018.88
5.4.390.0200.03719.16
5.4.380.0030.04019.20
5.4.370.0100.03719.15
5.4.360.0030.08019.24
5.4.350.0000.08319.16
5.4.340.0100.06719.20
5.4.320.0070.03718.85
5.4.310.0070.04319.14
5.4.300.0030.07019.07
5.4.290.0100.07719.14
5.4.280.0100.04319.16
5.4.270.0100.08019.12
5.4.260.0030.04318.87
5.4.250.0100.07319.14
5.4.240.0030.07719.07
5.4.230.0070.05719.25
5.4.220.0030.08319.15
5.4.210.0130.07019.14
5.4.200.0030.07718.92
5.4.190.0130.05318.99
5.4.180.0000.08719.25
5.4.170.0030.05319.14
5.4.160.0030.07019.06
5.4.150.0030.04719.10
5.4.140.0100.03016.39
5.4.130.0070.03716.40
5.4.120.0030.06716.31
5.4.110.0070.03316.47
5.4.100.0070.06716.54
5.4.90.0100.06716.55
5.4.80.0030.04316.45
5.4.70.0030.07016.47
5.4.60.0100.05716.47
5.4.50.0130.05316.40
5.4.40.0070.06316.25
5.4.30.0130.07016.42
5.4.20.0000.04016.40
5.4.10.0030.03716.38
5.4.00.0030.03715.84
5.3.290.0030.04014.70
5.3.280.0130.05714.67
5.3.270.0030.04014.53
5.3.260.0070.07714.65
5.3.250.0100.07014.62
5.3.240.0000.06714.57
5.3.230.0030.08014.64
5.3.220.0000.05014.56
5.3.210.0100.06314.71
5.3.200.0030.06314.49
5.3.190.0170.04014.64
5.3.180.0100.06314.56
5.3.170.0000.08014.58
5.3.160.0070.04714.72
5.3.150.0070.06314.62
5.3.140.0000.08314.70
5.3.130.0070.05314.58
5.3.120.0130.05714.47
5.3.110.0030.03714.62
5.3.100.0000.04014.04
5.3.90.0030.03714.08
5.3.80.0070.03313.96
5.3.70.0030.03714.09
5.3.60.0000.04014.09
5.3.50.0000.04014.01
5.3.40.0030.04013.90
5.3.30.0000.04013.96
5.3.20.0000.03713.86
5.3.10.0030.03313.65
5.3.00.0000.03713.56
5.2.170.0030.03311.15
5.2.160.0030.02711.30
5.2.150.0030.02711.04
5.2.140.0030.02711.07
5.2.130.0030.02711.00
5.2.120.0000.03011.11
5.2.110.0000.03311.15
5.2.100.0030.03311.03
5.2.90.0000.03011.10
5.2.80.0000.03711.07
5.2.70.0000.03011.09
5.2.60.0070.02311.14
5.2.50.0000.03011.18
5.2.40.0000.03011.05
5.2.30.0000.03710.96
5.2.20.0000.03010.96
5.2.10.0030.02710.75
5.2.00.0070.02310.72
5.1.60.0000.02310.05
5.1.50.0030.02710.14
5.1.40.0030.02310.03
5.1.30.0030.02310.35
5.1.20.0000.02710.36
5.1.10.0030.02710.13
5.1.00.0030.02310.03
5.0.50.0030.0208.60
5.0.40.0000.0208.32
5.0.30.0030.0278.21
5.0.20.0030.0178.11
5.0.10.0000.0208.18
5.0.00.0030.0278.23
4.4.90.0030.0137.69
4.4.80.0030.0137.69
4.4.70.0030.0137.69
4.4.60.0000.0177.69
4.4.50.0030.0137.69
4.4.40.0000.0237.69
4.4.30.0030.0137.69
4.4.20.0030.0137.69
4.4.10.0000.0177.69
4.4.00.0000.0277.69
4.3.110.0030.0137.69
4.3.100.0000.0177.69
4.3.90.0000.0177.69
4.3.80.0000.0277.69
4.3.70.0000.0137.69
4.3.60.0030.0107.69
4.3.50.0030.0137.69
4.3.40.0030.0207.69
4.3.30.0030.0137.69
4.3.20.0000.0177.69
4.3.10.0000.0207.69
4.3.00.0000.0277.69

preferences:
45.09 ms | 401 KiB | 5 Q