3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array('id'=>11,'status'=>'recommended','template'=>'gallery'); $args = array( 'id'=>array('filter'=>FILTER_VALIDATE_REGEXP,"options"=>array("regexp" => "/^[0-9]{0,10}+$/")), 'status'=>array('filter'=>FILTER_VALIDATE_REGEXP,"options"=>array("regexp" => "/(recommended|highlight|published|unpublished')$/")), 'template'=>array('filter'=>FILTER_VALIDATE_REGEXP,"options"=>array("regexp" => "/(bigphoto|smallphoto|text|outstanding|gallery')$/")) ); $f = filter_var_array($data, $args); var_dump($f);

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.70.0120.00416.49
8.3.60.0070.01418.55
8.3.50.0060.00922.18
8.3.40.0150.00018.82
8.3.30.0060.00818.93
8.3.20.0040.00420.09
8.3.10.0080.00023.61
8.3.00.0000.00819.26
8.2.180.0100.01016.63
8.2.170.0040.01122.96
8.2.160.0030.01020.52
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00422.08
8.2.110.0060.00320.56
8.2.100.0070.00417.97
8.2.90.0000.00818.03
8.2.80.0060.00317.97
8.2.70.0090.00017.63
8.2.60.0100.00317.68
8.2.50.0050.00318.07
8.2.40.0000.00919.88
8.2.30.0000.00718.08
8.2.20.0000.00817.88
8.2.10.0000.00818.04
8.2.00.0040.00417.88
8.1.280.0140.00325.92
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0170.00022.05
8.1.230.0070.00420.91
8.1.220.0040.00417.74
8.1.210.0050.00318.85
8.1.200.0030.00617.36
8.1.190.0030.00617.36
8.1.180.0030.00518.10
8.1.170.0090.00018.72
8.1.160.0070.00021.90
8.1.150.0070.00018.72
8.1.140.0030.00617.41
8.1.130.0000.00819.31
8.1.120.0040.00417.55
8.1.110.0050.00217.45
8.1.100.0040.00417.55
8.1.90.0040.00417.49
8.1.80.0000.00717.57
8.1.70.0000.00717.55
8.1.60.0040.00417.71
8.1.50.0000.00817.50
8.1.40.0040.00417.46
8.1.30.0030.00617.66
8.1.20.0000.00817.61
8.1.10.0020.00517.56
8.1.00.0040.00417.60
8.0.300.0020.00520.21
8.0.290.0040.00416.75
8.0.280.0050.00218.32
8.0.270.0080.00017.25
8.0.260.0050.00218.62
8.0.250.0030.00617.00
8.0.240.0070.00016.97
8.0.230.0000.00716.93
8.0.220.0040.00416.88
8.0.210.0030.00317.01
8.0.200.0030.00317.02
8.0.190.0000.00917.04
8.0.180.0080.00016.88
8.0.170.0040.00416.96
8.0.160.0050.00216.93
8.0.150.0040.00416.83
8.0.140.0000.00817.02
8.0.130.0050.00013.38
8.0.120.0000.00816.98
8.0.110.0040.00416.98
8.0.100.0040.00416.95
8.0.90.0050.00316.98
8.0.80.0140.00616.86
8.0.70.0060.00316.96
8.0.60.0060.00317.08
8.0.50.0050.00216.96
8.0.30.0120.00817.16
8.0.20.0070.01417.40
8.0.10.0000.00817.10
8.0.00.0100.00717.07
7.4.330.0050.00015.00
7.4.320.0000.00616.70
7.4.300.0000.00616.73
7.4.290.0070.00016.75
7.4.280.0060.00316.74
7.4.270.0000.00716.68
7.4.260.0000.00716.65
7.4.250.0000.00716.54
7.4.240.0020.00516.69
7.4.230.0040.00416.74
7.4.220.0070.01016.62
7.4.210.0090.01216.70
7.4.200.0000.00716.78
7.4.160.0120.00916.57
7.4.150.0130.00717.40
7.4.140.0090.01017.86
7.4.130.0100.00816.75
7.4.120.0110.00616.56
7.4.110.0080.01316.64
7.4.100.0140.00316.58
7.4.90.0030.01416.80
7.4.80.0110.01019.39
7.4.70.0100.01016.55
7.4.60.0060.00916.59
7.4.50.0000.00716.38
7.4.40.0070.01016.71
7.4.30.0090.00816.45
7.4.00.0070.00315.20
7.3.330.0000.00613.07
7.3.320.0000.00613.10
7.3.310.0040.00416.32
7.3.300.0030.00316.32
7.3.290.0090.00616.38
7.3.280.0060.01316.36
7.3.270.0160.00717.40
7.3.260.0120.00616.33
7.3.250.0150.00516.36
7.3.240.0060.01016.63
7.3.230.0090.01216.39
7.3.210.0040.01216.24
7.3.200.0060.01219.39
7.3.190.0110.00516.72
7.3.180.0070.01016.33
7.3.170.0100.00616.69
7.3.160.0060.01116.18
7.2.330.0080.01416.71
7.2.320.0060.01316.63
7.2.310.0090.00916.77
7.2.300.0040.01316.64
7.2.290.0120.01116.55
7.2.60.0000.01616.71
7.2.00.0170.00319.40
7.1.200.0090.00615.60
7.1.100.0030.01018.48
7.1.70.0060.00317.28
7.1.60.0000.01517.19
7.1.50.0040.00717.05
7.1.00.0100.07022.59
7.0.200.0000.00916.87
7.0.140.0100.06721.99
7.0.60.0070.09019.97
7.0.50.0070.08017.90
7.0.40.0100.04720.00
7.0.30.0330.07720.19
7.0.20.0230.08320.14
7.0.10.0270.08320.11
7.0.00.0030.06720.18
5.6.280.0030.07021.04
5.6.210.0100.07720.70
5.6.200.0000.06718.22
5.6.190.0000.05720.61
5.6.180.0270.03720.27
5.6.170.0300.07320.50
5.6.160.0030.04720.52
5.6.150.0000.04318.19
5.6.140.0000.05318.21
5.6.130.0030.05018.20
5.6.120.0030.04021.00
5.6.110.0100.07020.98
5.6.100.0100.03720.88
5.6.90.0070.08720.96
5.6.80.0100.03320.41
5.6.70.3100.02720.41
5.5.350.0170.07320.43
5.5.340.0030.05017.92
5.5.330.0130.03720.23
5.5.320.0470.07320.32
5.5.310.0100.04320.26
5.5.300.0130.07318.00
5.5.290.0030.07017.98
5.5.280.0070.07720.68
5.5.270.0030.04320.87
5.5.260.0000.08020.73
5.5.250.0100.05720.70
5.5.240.0370.06720.25
5.4.450.0830.05319.49
5.4.440.0800.06719.24
5.4.430.0000.06319.40
5.4.420.0670.00019.53
5.4.410.0670.00019.34
5.4.400.0800.00019.05
5.4.390.0630.00019.17
5.4.380.0700.00019.07
5.4.370.0630.00019.15
5.4.360.0600.00019.18
5.4.350.0630.00019.07
5.4.340.0060.03311.97
5.4.320.0070.04212.46
5.4.310.0100.04012.45
5.4.300.0080.04212.46
5.4.290.0070.03812.45
5.4.280.0060.03612.35
5.4.270.0080.03412.35
5.4.260.0060.03712.35
5.4.250.0080.03612.35
5.4.240.0050.03712.35
5.4.230.0070.03812.34
5.4.220.0070.03612.34
5.4.210.0070.03412.34
5.4.200.0080.03512.34
5.4.190.0060.04612.34
5.4.180.0060.03612.34
5.4.170.0080.03912.35
5.4.160.0090.03912.35
5.4.150.0040.03612.34
5.4.140.0110.03912.02
5.4.130.0100.03612.02
5.4.120.0100.03611.97
5.4.110.0070.03311.97
5.4.100.0100.03011.96
5.4.90.0070.03511.96
5.4.80.0040.03911.96
5.4.70.0040.03611.96
5.4.60.0050.04111.96
5.4.50.0060.03611.96
5.4.40.0090.03411.95
5.4.30.0060.03911.95
5.4.20.0070.03411.95
5.4.10.0060.03211.95
5.4.00.0050.03611.44
5.3.290.0050.04312.80
5.3.280.0050.04112.71
5.3.270.0100.03512.73
5.3.260.0040.04112.72
5.3.250.0100.03412.72
5.3.240.0080.03412.72
5.3.230.0080.03612.71
5.3.220.0040.03912.68
5.3.210.0060.03912.68
5.3.200.0070.03512.68
5.3.190.0050.03812.68
5.3.180.0050.03712.68
5.3.170.0070.03912.67
5.3.160.0030.03812.68
5.3.150.0050.03812.67
5.3.140.0100.03212.66
5.3.130.0060.04112.66
5.3.120.0060.03812.66
5.3.110.0070.03812.66
5.3.100.0060.03712.12
5.3.90.0050.03812.08
5.3.80.0050.03512.08
5.3.70.0070.03412.08
5.3.60.0080.03412.07
5.3.50.0040.03712.00
5.3.40.0070.03512.00
5.3.30.0040.03711.95
5.3.20.0110.03611.74
5.3.10.0110.04711.70
5.3.00.0080.04111.69
5.2.170.0040.0319.20
5.2.160.0030.0339.19
5.2.150.0070.0299.20
5.2.140.0050.0309.19
5.2.130.0030.0309.15
5.2.120.0050.0289.15
5.2.110.0050.0289.16
5.2.100.0090.0249.15
5.2.90.0030.0309.15
5.2.80.0060.0309.14
5.2.70.0100.0259.14
5.2.60.0030.0319.10
5.2.50.0030.0349.07
5.2.40.0080.0369.05
5.2.30.0060.0469.03
5.2.20.0060.0349.03
5.2.10.0090.0318.96
5.2.00.0090.0278.82
5.1.60.0050.0318.08
5.1.50.0040.0278.07
5.1.40.0020.0288.06
5.1.30.0070.0228.41
5.1.20.0070.0238.43
5.1.10.0030.0278.15
5.1.00.0040.0268.16
5.0.50.0050.0196.63
5.0.40.0050.0176.49
5.0.30.0030.0326.31
5.0.20.0020.0206.28
5.0.10.0060.0176.26
5.0.00.0030.0306.25
4.4.90.0030.0284.78
4.4.80.0020.0164.75
4.4.70.0020.0164.76
4.4.60.0030.0144.76
4.4.50.0020.0164.77
4.4.40.0020.0254.71
4.4.30.0020.0154.76
4.4.20.0020.0164.84
4.4.10.0060.0204.85
4.4.00.0020.0264.76
4.3.110.0020.0184.67
4.3.100.0020.0194.67
4.3.90.0030.0144.63
4.3.80.0030.0244.58
4.3.70.0020.0154.63
4.3.60.0010.0164.63
4.3.50.0030.0154.63
4.3.40.0040.0234.54
4.3.30.0010.0173.30
4.3.20.0020.0163.27
4.3.10.0020.0193.22
4.3.00.0030.0277.48

preferences:
52.55 ms | 401 KiB | 5 Q