3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( filter_var( range(1, 3), FILTER_VALIDATE_INT, FILTER_REQUIRE_ARRAY ) ); var_dump( filter_var( 3, FILTER_VALIDATE_INT, FILTER_FORCE_ARRAY ) ); var_dump( filter_var( 3, FILTER_VALIDATE_INT, FILTER_REQUIRE_ARRAY ) );

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.00718.30
8.3.50.0070.00716.40
8.3.40.0040.01118.76
8.3.30.0060.01018.34
8.3.20.0060.00320.10
8.3.10.0080.00021.49
8.3.00.0070.00020.95
8.2.180.0060.00918.04
8.2.170.0070.00722.96
8.2.160.0070.01122.16
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00720.52
8.2.120.0050.00326.35
8.2.110.0060.00320.52
8.2.100.0090.00317.53
8.2.90.0000.00819.06
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0000.00817.55
8.2.50.0030.00618.10
8.2.40.0040.00422.35
8.2.30.0060.00320.91
8.2.20.0020.00517.83
8.2.10.0050.00217.84
8.2.00.0050.00217.85
8.1.280.0110.01125.92
8.1.270.0030.00522.19
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0000.01020.75
8.1.230.0040.00719.01
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.22
8.1.190.0030.00617.10
8.1.180.0030.00518.10
8.1.170.0070.00418.59
8.1.160.0000.00718.94
8.1.150.0040.00420.56
8.1.140.0020.00519.43
8.1.130.0030.00318.75
8.1.120.0000.00717.20
8.1.110.0000.00717.34
8.1.100.0000.00817.34
8.1.90.0000.00717.36
8.1.80.0000.00817.29
8.1.70.0030.00317.22
8.1.60.0030.00617.41
8.1.50.0020.00517.42
8.1.40.0030.00517.44
8.1.30.0000.00917.52
8.1.20.0040.00417.56
8.1.10.0040.00417.24
8.1.00.0000.00817.20
8.0.300.0070.00018.77
8.0.290.0040.00416.58
8.0.280.0030.00318.27
8.0.270.0030.00317.12
8.0.260.0000.00716.64
8.0.250.0070.00016.88
8.0.240.0030.00716.67
8.0.230.0000.00816.81
8.0.220.0000.00716.74
8.0.210.0030.00316.67
8.0.200.0000.00716.69
8.0.190.0030.00516.77
8.0.180.0070.00016.73
8.0.170.0070.00016.82
8.0.160.0040.00416.69
8.0.150.0030.00316.77
8.0.140.0040.00416.73
8.0.130.0000.00713.22
8.0.120.0040.00416.61
8.0.110.0070.00016.69
8.0.100.0000.00816.53
8.0.90.0000.00716.80
8.0.80.0000.01616.72
8.0.70.0040.00416.59
8.0.60.0000.00716.73
8.0.50.0050.00316.62
8.0.30.0140.00516.88
8.0.20.0100.01317.40
8.0.10.0070.00016.88
8.0.00.0070.01116.41
7.4.330.0050.00015.55
7.4.320.0000.00716.55
7.4.300.0030.00316.25
7.4.290.0060.00316.36
7.4.280.0080.00016.43
7.4.270.0000.00816.34
7.4.260.0050.00516.41
7.4.250.0030.00416.46
7.4.240.0050.00316.44
7.4.230.0000.00616.52
7.4.220.0160.00716.40
7.4.210.0090.01016.57
7.4.200.0040.00416.20
7.4.160.0060.01316.44
7.4.150.0070.01117.40
7.4.140.0120.00717.86
7.4.130.0200.00316.55
7.4.120.0090.00916.35
7.4.110.0190.00016.32
7.4.100.0110.00616.57
7.4.90.0150.00316.41
7.4.80.0150.00319.39
7.4.70.0130.00316.18
7.4.60.0040.01216.30
7.4.50.0090.00616.43
7.4.40.0030.01416.33
7.4.30.0000.01716.43
7.4.00.0070.01014.88
7.3.330.0020.00212.96
7.3.320.0000.00613.02
7.3.310.0040.00416.17
7.3.300.0000.00715.98
7.3.290.0080.00816.06
7.3.280.0090.00716.12
7.3.270.0070.01017.40
7.3.260.0060.01016.39
7.3.250.0090.01016.36
7.3.240.0050.01216.15
7.3.230.0200.00316.23
7.3.210.0140.00616.05
7.3.200.0050.01116.13
7.3.190.0120.00916.26
7.3.180.0070.00816.19
7.3.170.0030.01316.18
7.3.160.0160.00016.08
7.3.10.0060.00916.48
7.3.00.0080.00816.15
7.2.330.0100.00716.32
7.2.320.0090.01016.23
7.2.310.0110.00516.54
7.2.300.0110.00616.30
7.2.290.0080.01016.51
7.2.130.0110.00816.46
7.2.120.0040.00816.39
7.2.110.0070.01116.72
7.2.100.0100.00316.52
7.2.90.0140.00316.91
7.2.80.0070.00716.53
7.2.70.0040.00716.69
7.2.60.0030.01316.58
7.2.50.0000.00916.70
7.2.40.0060.00916.70
7.2.30.0120.00316.52
7.2.20.0030.00616.74
7.2.10.0030.01016.61
7.2.00.0060.00518.01
7.1.250.0100.00715.58
7.1.200.0100.00315.39
7.1.100.0100.00718.14
7.1.70.0100.00717.02
7.1.60.0500.00733.27
7.1.50.0430.01732.58
7.1.40.0500.01732.59
7.1.30.1470.01332.55
7.1.20.0770.01732.85
7.1.10.0470.00714.55
7.1.00.0300.01314.79
7.0.200.0370.00714.71
7.0.190.0370.01014.63
7.0.180.0600.00314.32
7.0.170.0670.01314.20
7.0.160.0500.01314.32
7.0.150.0530.01314.36
7.0.140.0370.01014.39
7.0.130.0330.01014.47
7.0.120.0330.01014.57
7.0.110.0370.01014.24
7.0.100.0330.01014.27
7.0.90.0430.00714.38
7.0.80.0330.01014.52
7.0.70.0330.01314.39
7.0.60.0470.01014.20
7.0.50.0430.00314.54
7.0.40.0370.01014.43
7.0.30.0370.01714.30
7.0.20.0370.01014.66
7.0.10.0570.01314.37
7.0.00.0470.00714.43

preferences:
77.81 ms | 401 KiB | 5 Q