3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL | E_STRICT); /* data actually came from POST */ $_POST = array( 'product_id' => 'libgd<script>', 'component' => '10', 'versions' => '2.0.33', 'testarray' => array('2', '23', '10', '12'), 'testscalar' => '2', ); $args = array( 'product_id' => FILTER_SANITIZE_ENCODED, 'component' => array('filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_REQUIRE_ARRAY, 'options' => array('min_range' => 1, 'max_range' => 10) ), 'versions' => FILTER_SANITIZE_ENCODED, 'doesnotexist' => FILTER_VALIDATE_INT, 'testscalar' => array( 'filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_REQUIRE_SCALAR, ), 'testarray' => array( 'filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_REQUIRE_ARRAY, ), 'flags' => FILTER_NULL_ON_FAILURE ); $myinputs = filter_input_array(INPUT_POST, $args); var_dump($myinputs); echo "\n";

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.0130.00318.71
8.3.30.0040.01118.53
8.3.20.0070.00021.63
8.3.10.0040.00421.85
8.3.00.0000.00723.61
8.2.170.0110.00422.96
8.2.160.0130.00020.16
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0000.00720.89
8.2.110.0040.00721.02
8.2.100.0090.00317.66
8.2.90.0030.00517.75
8.2.80.0080.00018.78
8.2.70.0040.00417.63
8.2.60.0040.00417.63
8.2.50.0030.00619.36
8.2.40.0030.00617.75
8.2.30.0000.00821.11
8.2.20.0070.00018.18
8.2.10.0000.00718.12
8.2.00.0030.00619.18
8.1.270.0040.00423.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00519.29
8.1.230.0040.00822.63
8.1.220.0050.00318.66
8.1.210.0050.00318.77
8.1.200.0000.00817.35
8.1.190.0040.00417.39
8.1.180.0040.00418.10
8.1.170.0070.00418.55
8.1.160.0000.00718.94
8.1.150.0000.00918.93
8.1.140.0050.00217.62
8.1.130.0000.00719.00
8.1.120.0030.00517.36
8.1.110.0000.00817.32
8.1.100.0070.00317.41
8.1.90.0000.00717.43
8.1.80.0000.00717.36
8.1.70.0050.00317.44
8.1.60.0040.00817.45
8.1.50.0030.00617.53
8.1.40.0000.00717.44
8.1.30.0060.00317.48
8.1.20.0000.00717.61
8.1.10.0040.00417.49
8.1.00.0030.00617.47
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0100.00018.44
8.0.270.0080.00016.91
8.0.260.0040.00417.30
8.0.250.0000.00716.83
8.0.240.0000.00716.93
8.0.230.0080.00316.79
8.0.220.0040.00416.77
8.0.210.0000.00716.91
8.0.200.0070.00016.91
8.0.190.0000.00716.99
8.0.180.0000.00816.94
8.0.170.0080.00016.90
8.0.160.0000.00716.87
8.0.150.0000.00716.88
8.0.140.0070.00016.71
8.0.130.0060.00013.27
8.0.120.0030.00516.90
8.0.110.0090.00016.88
8.0.100.0030.00516.75
8.0.90.0000.00716.98
8.0.80.0070.00716.92
8.0.70.0000.00816.77
8.0.60.0000.00816.95
8.0.50.0040.00416.71
8.0.30.0120.00717.17
8.0.20.0130.01017.40
8.0.10.0000.00716.88
8.0.00.0130.00516.96
7.4.330.0060.00015.55
7.4.320.0030.00316.61
7.4.300.0030.00316.59
7.4.290.0000.00716.44
7.4.280.0080.00016.63
7.4.270.0100.00016.61
7.4.260.0070.00016.56
7.4.250.0030.00316.58
7.4.240.0080.00016.50
7.4.230.0070.00016.41
7.4.220.0000.00816.61
7.4.210.0070.00916.54
7.4.200.0070.00016.61
7.4.160.0050.01216.51
7.4.140.0120.00917.86
7.4.130.0120.00616.58
7.4.120.0100.01016.46
7.4.110.0070.01016.55
7.4.100.0080.00816.56
7.4.90.0100.00616.43
7.4.80.0040.01919.39
7.4.70.0200.00316.51
7.4.60.0100.00716.50
7.4.50.0030.00916.40
7.4.40.0040.01416.44
7.4.10.0070.00714.81
7.4.00.0100.00614.83
7.3.330.0040.00312.89
7.3.320.0050.00012.96
7.3.310.0000.00716.21
7.3.300.0030.00316.05
7.3.290.0000.00616.16
7.3.280.0050.01016.18
7.3.260.0090.01016.29
7.3.240.0130.00716.36
7.3.230.0100.00716.48
7.3.210.0100.00616.54
7.3.200.0000.01616.34
7.3.190.0000.01916.27
7.3.180.0150.00316.26
7.3.170.0150.00616.18
7.3.160.0150.00716.43
7.3.130.0070.01014.74
7.3.120.0130.00714.72
7.3.110.0030.01214.68
7.3.100.0030.01014.66
7.3.90.0070.00414.63
7.3.80.0030.00614.86
7.3.70.0120.00414.52
7.3.60.0050.00314.55
7.3.50.0040.00714.74
7.3.40.0030.01014.47
7.3.30.0060.01214.67
7.3.20.0090.00916.55
7.3.10.0070.00616.61
7.3.00.0060.00616.36
7.2.330.0100.00716.56
7.2.320.0110.00616.36
7.2.310.0030.01316.34
7.2.300.0150.00616.16
7.2.290.0100.00716.40
7.2.260.0000.01715.04
7.2.250.0100.00714.83
7.2.240.0040.01115.03
7.2.230.0040.01114.71
7.2.220.0030.00615.01
7.2.210.0030.01014.91
7.2.200.0000.01414.60
7.2.190.0070.00715.09
7.2.180.0030.00714.75
7.2.170.0040.01414.64
7.2.160.0040.01114.91
7.2.150.0000.01416.96
7.2.140.0090.00616.73
7.2.130.0060.00816.74
7.2.120.0080.00616.85
7.2.110.0050.00816.86
7.2.100.0040.01116.70
7.2.90.0070.00616.64
7.2.80.0040.00916.74
7.2.70.0080.00716.82
7.2.60.0080.00516.81
7.2.50.0030.01016.87
7.2.40.0260.00816.96
7.2.30.0300.00717.09
7.2.20.0260.00617.07
7.2.10.0300.00517.08
7.2.00.0320.00717.03
7.1.330.0060.00615.64
7.1.320.0070.00715.82
7.1.310.0000.01515.57
7.1.300.0080.00415.55
7.1.290.0050.00315.71
7.1.280.0090.00615.70
7.1.270.0060.01215.48
7.1.260.0070.00715.69
7.1.250.0040.00715.62
7.1.240.0070.00315.55
7.1.230.0030.01215.55
7.1.220.0000.01515.72
7.1.210.0000.01415.66
7.1.200.0050.00615.73
7.1.190.0110.00715.56
7.1.180.0100.00715.54
7.1.170.0060.01115.76
7.1.160.0460.00916.18
7.1.150.0350.00716.02
7.1.140.0510.01016.32
7.1.130.0530.01216.20
7.1.120.0560.01316.10
7.1.110.0570.00915.75
7.1.100.0280.00815.90
7.1.90.0580.01015.96
7.1.80.0580.00815.84
7.1.70.0290.01015.47
7.1.60.0570.01224.37
7.1.50.0540.00924.21
7.1.40.0750.01224.04
7.1.30.0550.01124.17
7.1.20.0720.01024.25
7.1.10.0640.01115.02
7.1.00.0400.00815.29
7.0.330.0120.00615.17
7.0.320.0060.01015.18
7.0.310.0000.01215.44
7.0.300.0070.00715.00
7.0.290.0330.00515.57
7.0.280.0130.00315.41
7.0.270.0810.00815.88
7.0.260.0550.00915.63
7.0.250.0880.00715.69
7.0.240.0530.00915.55
7.0.230.0580.00815.30
7.0.220.0400.00915.44
7.0.210.0810.00415.12
7.0.200.0280.01015.04
7.0.190.0390.00915.25
7.0.180.0460.01114.85
7.0.170.0580.00814.94
7.0.160.0680.01014.85
7.0.150.0480.00814.93
7.0.140.0370.00714.72
7.0.130.0300.00514.98
7.0.120.0280.00814.87
7.0.110.0360.01014.77
7.0.100.0450.00614.88
7.0.90.0260.00914.89
7.0.80.0310.00915.06
7.0.70.0510.00714.71
7.0.60.0260.00914.61
7.0.50.0500.00915.03
7.0.40.0270.01213.87
7.0.30.0390.00913.99
7.0.20.0240.00813.71
7.0.10.0280.01113.77
7.0.00.0260.01313.85
5.6.400.0060.00314.63
5.6.390.0030.01214.21
5.6.380.0060.00614.58
5.6.370.0070.00714.25
5.6.360.0040.00814.36
5.6.350.0060.00614.62
5.6.340.0060.00914.50
5.6.330.0070.00714.45
5.6.320.0040.00714.48
5.6.310.0070.00414.56
5.6.300.0110.03317.61
5.6.290.0100.03417.66
5.6.280.0160.04117.55
5.6.270.0100.03317.55
5.6.260.0110.03317.70
5.6.250.0150.03417.47
5.6.240.0070.03517.43
5.6.230.0150.02917.60
5.6.220.0130.02817.51
5.6.210.0130.04217.38
5.6.200.0090.04317.56
5.6.190.0110.03917.75
5.6.180.0110.03117.61
5.6.170.0100.03517.57
5.6.160.0160.02617.46
5.6.150.0130.03017.56
5.6.140.0140.02917.54
5.6.130.0150.03017.54
5.6.120.0140.03417.62
5.6.110.0150.04117.50
5.6.100.0130.03017.54
5.6.90.0070.03617.60
5.6.80.0110.03217.26
5.6.70.0130.02917.46
5.6.60.0110.04117.14
5.6.50.0110.02917.39
5.6.40.0100.03117.29
5.6.30.0110.03217.12
5.6.20.0150.02917.14
5.6.10.0090.03417.29
5.6.00.0140.03217.18
5.5.380.0180.04917.43
5.5.370.0100.05617.54
5.5.360.0120.05617.41
5.5.350.0240.06417.43
5.5.340.0160.05317.88
5.5.330.0200.05217.97
5.5.320.0170.07117.88
5.5.310.0160.05317.96
5.5.300.0110.05817.88
5.5.290.0210.06217.89
5.5.280.0140.05717.96
5.5.270.0140.05617.73
5.5.260.0180.06918.00
5.5.250.0140.05317.89
5.5.240.0180.05017.19
5.5.230.0280.06817.35
5.5.220.0150.05717.17
5.5.210.0130.06917.44
5.5.200.0170.05217.40
5.5.190.0150.05717.31
5.5.180.0170.05617.31
5.5.160.0190.06217.32
5.5.150.0150.05417.41
5.5.140.0150.05317.25
5.5.130.0090.05717.09
5.5.120.0120.05417.03
5.5.110.0150.05217.32
5.5.100.0150.05117.23
5.5.90.0090.05617.21
5.5.80.0070.05816.96
5.5.70.0150.05717.21
5.5.60.0160.05717.14
5.5.50.0160.05117.02
5.5.40.0170.04916.98
5.5.30.0100.05517.16
5.5.20.0180.04917.28
5.5.10.0170.06117.11
5.5.00.0190.05317.13
5.4.450.0190.05819.13
5.4.440.0150.05719.34
5.4.430.0180.06519.40
5.4.420.0220.05319.31
5.4.410.0140.05319.28
5.4.400.0180.06819.17
5.4.390.0150.05319.05
5.4.380.0190.06518.97
5.4.370.0180.04618.80
5.4.360.0150.06018.77
5.4.350.0240.06319.08
5.4.340.0180.05519.04
5.4.320.0220.04718.95
5.4.310.0150.05118.75
5.4.300.0180.06718.88
5.4.290.0160.05719.01
5.4.280.0180.05619.07
5.4.270.0130.05418.98
5.4.260.0120.05418.91
5.4.250.0180.04818.79
5.4.240.0160.05019.16
5.4.230.0220.06718.88
5.4.220.0170.05018.77
5.4.210.0200.07019.07
5.4.200.0150.04919.00
5.4.190.0110.05418.75
5.4.180.0130.05219.09
5.4.170.0090.06218.84
5.4.160.0110.05318.90
5.4.150.0150.04818.90
5.4.140.0120.05016.51
5.4.130.0130.04816.37
5.4.120.0130.04816.25
5.4.110.0140.04816.63
5.4.100.0090.05216.38
5.4.90.0150.04716.36
5.4.80.0140.04716.29
5.4.70.0190.04216.61
5.4.60.0100.05016.53
5.4.50.0110.04916.33
5.4.40.0150.04616.59
5.4.30.0190.04216.47
5.4.20.0170.04416.53
5.4.10.0090.05316.37
5.4.00.0080.05115.85
5.3.290.0160.04814.73
5.3.280.0140.06614.66
5.3.270.0170.06814.42
5.3.260.0160.04614.76
5.3.250.0090.05114.41
5.3.240.0160.04614.59
5.3.230.0120.05114.76
5.3.220.0220.06014.67
5.3.210.0130.05014.72
5.3.200.0140.04714.71
5.3.190.0110.05214.71
5.3.180.0110.05114.71
5.3.170.0120.04914.56
5.3.160.0170.04514.55
5.3.150.0160.05314.72
5.3.140.0160.06714.55
5.3.130.0130.05114.53
5.3.120.0100.05414.75
5.3.110.0140.04914.51
5.3.100.0080.05314.21
5.3.90.0150.04614.17
5.3.80.0130.04714.06
5.3.70.0130.04714.00
5.3.60.0180.04214.07
5.3.50.0140.04613.93
5.3.40.0160.05413.96
5.3.30.0110.04813.99
5.3.20.0100.05013.50
5.3.10.0130.04613.71
5.3.00.0080.05113.79
5.2.170.0110.03811.27
5.2.160.0100.03811.39
5.2.150.0100.03911.37
5.2.140.0080.04211.29
5.2.130.0120.03611.09
5.2.120.0100.03811.21
5.2.110.0130.03510.93
5.2.100.0130.03511.24
5.2.90.0130.04111.24
5.2.80.0120.03711.33
5.2.70.0110.04911.09
5.2.60.0070.04110.95
5.2.50.0100.03811.13
5.2.40.0090.03911.20
5.2.30.0130.03511.21
5.2.20.0100.04410.95
5.2.10.0120.03811.03
5.2.00.0130.04811.00
5.1.60.0070.03410.07
5.1.50.0090.03210.09
5.1.40.0150.04310.02
5.1.30.0120.04710.55
5.1.20.0140.04610.39
5.1.10.0050.03610.27
5.1.00.0160.03710.12
5.0.50.0040.0308.82
5.0.40.0040.0308.66
5.0.30.0120.0358.24
5.0.20.0070.0268.41
5.0.10.0070.0328.36
5.0.00.0110.0388.41
4.4.90.0060.0208.24
4.4.80.0050.0208.24
4.4.70.0080.0258.24
4.4.60.0070.0208.24
4.4.50.0070.0198.24
4.4.40.0040.0338.24
4.4.30.0080.0258.24
4.4.20.0070.0188.24
4.4.10.0090.0258.24
4.4.00.0120.0338.24
4.3.110.0080.0208.24
4.3.100.0040.0208.24
4.3.90.0030.0218.24
4.3.80.0050.0348.24
4.3.70.0030.0238.24
4.3.60.0090.0198.24
4.3.50.0070.0268.24
4.3.40.0040.0358.24
4.3.30.0050.0238.24
4.3.20.0070.0268.24
4.3.10.0050.0208.24
4.3.00.0060.0208.24

preferences:
60.98 ms | 400 KiB | 5 Q