3v4l.org

run code in 300+ PHP versions simultaneously
<?php $good_input = array('num' => 42); $bad_input = array('num' => 'foo'); $spec = array('num' => FILTER_VALIDATE_INT); $filtered = filter_var_array($good_input, $spec); var_dump($filtered == $good_input); $filtered = filter_var_array($bad_input, $spec); var_dump($filtered == $bad_input);

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.4.10.0030.00619.49
8.3.140.0090.00616.78
8.3.130.0000.00916.63
8.3.120.0070.00718.94
8.3.110.0160.00320.94
8.3.100.0100.01024.06
8.3.90.0080.00026.77
8.3.80.0100.00019.36
8.3.70.0090.00616.50
8.3.60.0180.00016.25
8.3.50.0120.00822.79
8.3.40.0090.00918.68
8.3.30.0040.01118.52
8.3.20.0040.00421.86
8.3.10.0050.00323.28
8.3.00.0080.00019.73
8.2.260.0000.00817.09
8.2.250.0150.00418.42
8.2.240.0110.00417.10
8.2.230.0070.00322.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0030.00618.88
8.2.190.0120.00316.63
8.2.180.0030.01317.99
8.2.170.0090.00622.96
8.2.160.0170.00320.47
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00422.20
8.2.120.0070.00026.35
8.2.110.0090.00020.35
8.2.100.0040.00717.78
8.2.90.0050.00322.33
8.2.80.0060.00317.97
8.2.70.0040.00417.93
8.2.60.0040.00417.92
8.2.50.0030.00618.10
8.2.40.0050.00320.59
8.2.30.0090.00019.24
8.2.20.0040.00417.61
8.2.10.0000.00718.05
8.2.00.0000.00918.05
8.1.310.0120.00616.71
8.1.300.0030.00616.14
8.1.290.0060.00330.84
8.1.280.0080.00625.92
8.1.270.0100.01023.63
8.1.260.0080.00028.09
8.1.250.0050.00328.09
8.1.240.0060.00323.93
8.1.230.0040.00720.94
8.1.220.0050.00317.74
8.1.210.0000.00818.90
8.1.200.0000.00817.23
8.1.190.0070.00417.23
8.1.180.0000.00818.10
8.1.170.0090.00018.50
8.1.160.0030.00322.14
8.1.150.0070.00020.79
8.1.140.0030.00519.49
8.1.130.0050.00217.75
8.1.120.0030.00417.49
8.1.110.0020.00517.45
8.1.100.0070.00317.46
8.1.90.0040.00417.35
8.1.80.0040.00417.40
8.1.70.0000.00717.38
8.1.60.0000.00817.44
8.1.50.0000.00917.50
8.1.40.0000.00817.48
8.1.30.0080.00017.63
8.1.20.0000.00917.49
8.1.10.0030.00617.36
8.1.00.0040.00417.38
8.0.300.0040.00419.86
8.0.290.0040.00416.63
8.0.280.0000.00718.41
8.0.270.0030.00317.20
8.0.260.0030.00317.24
8.0.250.0050.00316.86
8.0.240.0040.00417.00
8.0.230.0000.00716.96
8.0.220.0030.00316.78
8.0.210.0000.00716.88
8.0.200.0060.00016.87
8.0.190.0000.00816.86
8.0.180.0040.00416.95
8.0.170.0050.00316.93
8.0.160.0040.00416.90
8.0.150.0040.00416.93
8.0.140.0000.00716.89
8.0.130.0000.00613.30
8.0.120.0030.00516.89
8.0.110.0080.00016.94
8.0.100.0050.00216.74
8.0.90.0070.00016.89
8.0.80.0090.00616.86
8.0.70.0070.00016.86
8.0.60.0040.00416.79
8.0.50.0040.00416.79
8.0.30.0090.01017.06
8.0.20.0100.00817.40
8.0.10.0040.00416.91
8.0.00.0070.01116.94
7.4.330.0000.00515.08
7.4.320.0000.00616.47
7.4.300.0000.00616.51
7.4.290.0040.00416.53
7.4.280.0060.00316.50
7.4.270.0030.00516.54
7.4.260.0040.00416.50
7.4.250.0030.00316.48
7.4.240.0050.00216.56
7.4.230.0070.00016.63
7.4.220.0190.00016.45
7.4.210.0090.00616.55
7.4.200.0070.00016.50
7.4.160.0060.01016.44
7.4.150.0130.00317.40
7.4.140.0110.00717.86
7.4.130.0090.00816.46
7.4.120.0120.00716.47
7.4.110.0130.00316.54
7.4.100.0030.01316.50
7.4.90.0060.01316.64
7.4.80.0030.01319.39
7.4.70.0110.00616.52
7.4.60.0090.00916.48
7.4.50.0060.01016.36
7.4.40.0160.00316.31
7.4.30.0070.01416.46
7.4.00.0090.00615.11
7.3.330.0020.00213.07
7.3.320.0060.00013.05
7.3.310.0040.00416.13
7.3.300.0030.00316.23
7.3.290.0120.00516.16
7.3.280.0090.00816.13
7.3.270.0100.00617.40
7.3.260.0090.00816.32
7.3.250.0090.00916.27
7.3.240.0050.01116.23
7.3.230.0030.01416.39
7.3.210.0190.00316.22
7.3.200.0140.00716.56
7.3.190.0130.00316.37
7.3.180.0060.01216.28
7.3.170.0150.00616.41
7.3.160.0100.00616.27
7.2.330.0140.00316.47
7.2.320.0030.01316.46
7.2.310.0110.00616.39
7.2.300.0090.00816.51
7.2.290.0120.00416.41
7.2.00.0000.01419.19
7.1.200.0070.00715.63
7.1.70.0070.00016.97
7.1.60.0090.00619.75
7.1.00.0070.07322.43
7.0.200.0070.00314.75
7.0.90.5830.00019.98
7.0.80.0730.00020.02
7.0.70.0830.00019.91
7.0.60.0730.00020.05
7.0.50.0730.00020.46
7.0.40.0930.00020.36
7.0.30.0800.00020.32
7.0.20.0770.00020.19
7.0.10.0730.00020.40
7.0.00.0970.00020.41
5.6.240.0930.00020.73
5.6.230.1000.00020.59
5.6.220.0800.00020.64
5.6.210.0730.00020.55
5.6.200.0770.00021.09
5.6.190.0930.00021.08
5.6.180.0700.00021.02
5.6.170.0770.00021.19
5.6.160.0900.00021.08
5.6.150.0800.00020.99
5.6.140.0830.00021.16
5.6.130.0730.00021.01
5.6.120.0700.00021.16
5.6.110.0730.00021.15
5.6.100.0700.00021.15
5.6.90.0830.00020.99
5.6.80.0870.00020.39
5.6.70.0970.00020.46
5.6.60.1000.00020.42
5.6.50.0930.00020.50
5.6.40.1030.00020.47
5.6.30.0770.00020.55
5.6.20.0830.00020.43
5.6.10.0900.00020.36
5.6.00.0900.00020.51

preferences:
73.22 ms | 403 KiB | 5 Q