3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'This is day 7 of the task'; if ($int = filter_var($string, FILTER_SANITIZE_NUMBER_INT)) { echo "Found \"$int\" inside of $string"; } else { echo "No integers found inside of $string"; } echo "\n---\n"; $string = 'This is a day of the week'; if ($int = filter_var($string, FILTER_SANITIZE_NUMBER_INT)) { echo "Found \"$int\" inside of \"$string\""; } else { echo "No integers found inside of \"$string\""; }

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.5.10.0090.00816.60
8.5.00.0120.00819.91
8.4.150.0020.00114.05
8.4.140.0110.01017.43
8.4.130.0030.00718.46
8.4.120.0110.01024.06
8.4.110.0130.00818.92
8.4.100.0100.01018.63
8.4.90.0080.00622.26
8.4.80.0120.00918.97
8.4.70.0060.00218.83
8.4.60.0120.00818.91
8.4.50.0110.00820.26
8.4.40.0070.00417.34
8.4.30.0050.00319.63
8.4.20.0140.00720.38
8.4.10.0060.00317.53
8.3.280.0140.01018.13
8.3.270.0080.01216.57
8.3.260.0120.00616.51
8.3.250.0100.00916.61
8.3.240.0060.00617.03
8.3.230.0080.01116.53
8.3.220.0090.01018.72
8.3.210.0120.00716.84
8.3.200.0070.00216.57
8.3.190.0100.00717.33
8.3.180.0080.01016.70
8.3.170.0110.00717.17
8.3.160.0070.01118.98
8.3.150.0030.00616.68
8.3.140.0040.00419.07
8.3.130.0160.00318.41
8.3.120.0060.00318.93
8.3.110.0090.00916.78
8.3.100.0120.00316.48
8.3.90.0030.00626.77
8.3.80.0080.00319.36
8.3.70.0060.00918.30
8.3.60.0110.00818.43
8.3.50.0120.00618.28
8.3.40.0110.00418.84
8.3.30.0090.00918.80
8.3.20.0060.00318.99
8.3.10.0020.00523.61
8.3.00.0040.00420.87
8.2.290.0110.00720.30
8.2.280.0060.00518.30
8.2.270.0040.00416.90
8.2.260.0080.00018.35
8.2.250.0080.00016.31
8.2.240.0060.00318.65
8.2.230.0030.00620.94
8.2.220.0060.00324.06
8.2.210.0100.01026.77
8.2.200.0050.00518.88
8.2.190.0070.00717.93
8.2.180.0140.00716.48
8.2.170.0180.00422.96
8.2.160.0070.00722.30
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00421.04
8.2.110.0030.00620.93
8.2.100.0060.00617.78
8.2.90.0030.00519.46
8.2.80.0060.00317.97
8.2.70.0040.00418.04
8.2.60.0090.00018.16
8.2.50.0060.00318.10
8.2.40.0080.00021.03
8.2.30.0000.00719.24
8.2.20.0000.00718.05
8.2.10.0000.00818.11
8.2.00.0060.00319.44
8.1.330.0130.00321.73
8.1.320.0080.00715.93
8.1.310.0040.00420.12
8.1.300.0030.00518.53
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0050.00322.03
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00423.98
8.1.230.0070.00420.98
8.1.220.0000.00817.78
8.1.210.0080.00018.88
8.1.200.0040.00417.22
8.1.190.0030.00617.11
8.1.180.0040.00418.10
8.1.170.0000.01018.63
8.1.160.0030.00518.75
8.1.150.0040.00418.88
8.1.140.0040.00422.01
8.1.130.0030.00320.08
8.1.120.0000.00717.34
8.1.110.0050.00217.34
8.1.100.0040.00417.36
8.1.90.0040.00417.36
8.1.80.0080.00017.39
8.1.70.0070.00017.30
8.1.60.0080.00017.43
8.1.50.0040.00417.45
8.1.40.0000.00817.40
8.1.30.0040.00417.44
8.1.20.0070.00017.48
8.1.10.0000.00817.42
8.1.00.0000.00917.34
8.0.300.0070.00019.94
8.0.290.0070.00016.63
8.0.280.0030.00518.32
8.0.270.0000.00717.26
8.0.260.0000.00718.45
8.0.250.0000.00916.91
8.0.240.0000.00716.94
8.0.230.0000.00816.95
8.0.220.0060.00016.77
8.0.210.0000.00716.96
8.0.200.0000.00616.98
8.0.190.0050.00316.84
8.0.180.0000.00716.87
8.0.170.0000.00916.80
8.0.160.0000.00716.87
8.0.150.0040.00416.79
8.0.140.0030.00316.91
8.0.130.0030.00313.37
8.0.120.0050.00316.87
8.0.110.0000.00716.91
8.0.100.0040.00416.82
8.0.90.0040.00417.00
8.0.80.0120.00816.79
8.0.70.0040.00416.96
8.0.60.0000.00716.76
8.0.50.0000.00816.98
8.0.30.0150.00316.81
8.0.20.0080.01217.40
8.0.10.0040.00416.91
8.0.00.0110.01016.89
7.4.330.0030.00315.55
7.4.320.0030.00316.58
7.4.300.0030.00316.36
7.4.290.0000.00716.43
7.4.280.0000.00816.48
7.4.270.0000.00816.51
7.4.260.0000.00716.57
7.4.250.0070.00016.36
7.4.240.0040.00416.50
7.4.230.0030.00316.34
7.4.220.0040.00416.35
7.4.210.0060.00816.52
7.4.200.0000.00716.34
7.4.160.0150.00416.47
7.4.140.0120.00617.86
7.4.130.0070.01016.36
7.4.120.0120.00916.41
7.4.110.0090.00916.39
7.4.100.0100.00716.55
7.4.90.0150.01316.46
7.4.80.0070.01719.39
7.4.70.0090.00616.52
7.4.60.0060.01116.59
7.4.50.0070.00716.32
7.4.40.0110.00716.57
7.4.00.0130.00315.05
7.3.330.0060.00012.96
7.3.320.0030.00313.15
7.3.310.0040.00416.07
7.3.300.0030.00316.26
7.3.290.0030.00316.30
7.3.280.0100.00716.15
7.3.260.0090.00816.50
7.3.240.0090.00716.33
7.3.230.0140.00316.20
7.3.210.0170.00016.25
7.3.200.0080.00816.43
7.3.190.0060.00916.35
7.3.180.0100.01016.50
7.3.170.0130.00316.66
7.3.160.0090.00616.40
7.2.330.0180.00716.29
7.2.320.0100.01016.64
7.2.310.0130.00616.51
7.2.300.0100.00716.58
7.2.290.0090.00916.21
7.2.120.1960.00714.40
7.2.110.0760.01014.20
7.2.100.0830.01114.58
7.2.90.0940.00714.87
7.2.80.0880.00614.89
7.2.70.0870.00314.93
7.2.60.0750.00914.72
7.2.50.1220.01314.91
7.2.40.0930.01415.13
7.2.30.1380.01014.96
7.2.20.1120.01514.81
7.2.10.0770.00314.98
7.2.00.0600.01014.77
7.1.240.0860.00313.82
7.1.230.1220.00613.95
7.1.220.0970.00013.73
7.1.210.0480.01313.91
7.1.200.1070.01313.84
7.1.190.0880.00313.67
7.1.180.0940.00713.99
7.1.170.1070.00313.75
7.1.160.1770.01013.79
7.1.150.1420.01013.87
7.1.140.0910.00713.83
7.1.130.0630.00313.80
7.1.120.0740.00913.56
7.1.110.0690.01313.57
7.1.100.1240.00713.89
7.1.90.0840.00714.06
7.1.80.0660.01713.93
7.1.70.0740.00413.94
7.1.60.0640.01114.04
7.1.50.0600.00713.80
7.1.40.0610.00613.46
7.1.30.0580.01013.53
7.1.20.0240.01413.73
7.1.10.0780.01313.55
7.1.00.0610.01513.38
5.6.380.0110.00913.81

preferences:
43.43 ms | 403 KiB | 5 Q