3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "True " . (filter_var(true, FILTER_VALIDATE_INT) === false ? "is integer" : "is not integer") . PHP_EOL; echo "False " . (filter_var(false, FILTER_VALIDATE_INT) === false ? "is integer" : "is not integer") . PHP_EOL;

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.0110.00416.49
8.3.50.0130.00921.03
8.3.40.0110.00718.54
8.3.30.0150.00318.60
8.3.20.0040.00420.20
8.3.10.0040.00423.61
8.3.00.0050.00323.53
8.2.180.0120.00317.92
8.2.170.0120.00322.96
8.2.160.0090.00620.38
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00019.70
8.2.120.0050.00326.35
8.2.110.0080.00022.08
8.2.100.0040.00717.80
8.2.90.0050.00319.09
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0040.00422.15
8.2.30.0070.00019.36
8.2.20.0070.00017.51
8.2.10.0000.00717.92
8.2.00.0040.00418.03
8.1.280.0090.01225.92
8.1.270.0000.00720.24
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0070.00323.92
8.1.230.0000.01119.15
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0040.00417.23
8.1.190.0080.00017.00
8.1.180.0080.00018.10
8.1.170.0080.00018.59
8.1.160.0050.00320.64
8.1.150.0050.00218.80
8.1.140.0040.00419.37
8.1.130.0030.00317.53
8.1.120.0030.00317.39
8.1.110.0000.00717.32
8.1.100.0040.00417.41
8.1.90.0040.00417.40
8.1.80.0000.00717.40
8.1.70.0070.00017.27
8.1.60.0000.00817.52
8.1.50.0030.00617.45
8.1.40.0040.00417.45
8.1.30.0040.00417.51
8.1.20.0080.00017.56
8.1.10.0040.00417.48
8.1.00.0040.00417.35
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.30
8.0.270.0030.00317.11
8.0.260.0060.00017.16
8.0.250.0030.00316.86
8.0.240.0000.00616.76
8.0.230.0040.00416.91
8.0.220.0040.00416.72
8.0.210.0030.00316.73
8.0.200.0000.00816.85
8.0.190.0000.00816.88
8.0.180.0000.00816.73
8.0.170.0040.00416.85
8.0.160.0000.00816.85
8.0.150.0000.00716.72
8.0.140.0000.00816.79
8.0.130.0000.00613.20
8.0.120.0080.00016.80
8.0.110.0000.00716.71
8.0.100.0050.00316.77
8.0.90.0000.00716.71
8.0.80.0100.00716.78
8.0.70.0050.00316.93
8.0.60.0040.00416.55
8.0.50.0020.00516.73
8.0.30.0100.00916.89
8.0.20.0080.01017.40
8.0.10.0040.00416.84
8.0.00.0110.01016.63
7.4.330.0020.00216.84
7.4.320.0030.00316.51
7.4.300.0070.00016.57
7.4.290.0040.00416.28
7.4.280.0040.00416.27
7.4.270.0000.00716.58
7.4.260.0030.00716.39
7.4.250.0050.00316.39
7.4.240.0000.00716.38
7.4.230.0070.00016.32
7.4.220.0070.01316.39
7.4.210.0070.01016.46
7.4.200.0070.00016.55
7.4.160.0110.00516.46
7.4.150.0140.00317.40
7.4.140.0080.00917.86
7.4.130.0120.00916.38
7.4.120.0090.00916.51
7.4.110.0150.00316.43
7.4.100.0140.00416.48
7.4.90.0110.00616.43
7.4.80.0140.01019.39
7.4.70.0000.02016.28
7.4.60.0060.01016.32
7.4.50.0040.01116.33
7.4.40.0060.01016.59
7.4.30.0070.01016.39
7.4.00.0030.01014.97
7.3.330.0050.00012.98
7.3.320.0050.00012.93
7.3.310.0030.00316.13
7.3.300.0000.00716.21
7.3.290.0070.00916.22
7.3.280.0060.01216.24
7.3.270.0060.01117.40
7.3.260.0090.00916.39
7.3.250.0130.00716.27
7.3.240.0120.01016.23
7.3.230.0070.01016.39
7.3.210.0120.00916.31
7.3.200.0160.00019.39
7.3.190.0100.00716.44
7.3.180.0150.00016.21
7.3.170.0070.01016.36
7.3.160.0030.01216.31
7.2.330.0070.01116.36
7.2.320.0100.00716.77
7.2.310.0120.00916.47
7.2.300.0100.01316.61
7.2.290.0080.01116.70
7.2.00.0210.00619.00
7.1.100.0110.00417.95
7.1.70.0000.01017.24
7.1.60.0150.01119.27
7.1.50.0200.01734.86
7.1.00.0030.07722.57
7.0.200.0070.00316.62
7.0.60.0130.07721.83
7.0.50.0000.05317.87
7.0.40.0170.08020.20
7.0.30.0230.08720.00
7.0.20.0130.05020.09
7.0.10.0130.06320.00
7.0.00.0030.04019.99
5.6.280.0030.04021.10
5.6.210.0070.08320.64
5.6.200.0100.07718.12
5.6.190.0070.04020.45
5.6.180.0500.06320.56
5.6.170.0230.06020.51
5.6.160.0070.05720.52
5.6.150.0070.07718.08
5.6.140.0070.03718.21
5.6.130.0100.06318.14
5.6.120.0130.05021.02
5.6.110.0100.07320.98
5.6.100.0130.06020.88
5.6.90.0030.04021.00
5.6.80.0070.06720.38
5.5.350.0030.06720.33
5.5.340.0030.06317.96
5.5.330.0170.08020.40
5.5.320.0370.04320.26
5.5.310.0230.08320.41
5.5.300.0100.04317.95
5.5.290.0070.07317.91
5.5.280.0030.07720.98
5.5.270.0030.05320.86
5.5.260.0030.04320.64
5.5.250.0100.08720.55
5.5.240.0170.07020.35

preferences:
55.95 ms | 401 KiB | 5 Q