3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Variable to check $url = "https://w3schools.com"; // Validate url if (filter_var($url, FILTER_VALIDATE_URL)) { echo("$url is a valid URL"); } else { echo("$url is not a valid URL"); } ?>

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.0070.01316.75
8.3.50.0040.01116.12
8.3.40.0090.00618.71
8.3.30.0080.00818.51
8.3.20.0070.00018.94
8.3.10.0070.00019.02
8.3.00.0040.00419.56
8.2.180.0080.00818.30
8.2.170.0090.00622.96
8.2.160.0030.01020.64
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00019.84
8.2.120.0040.00426.35
8.2.110.0060.00321.02
8.2.100.0030.00917.58
8.2.90.0090.00017.75
8.2.80.0030.00618.82
8.2.70.0030.00518.03
8.2.60.0050.00317.80
8.2.50.0080.00018.10
8.2.40.0040.00419.48
8.2.30.0050.00319.48
8.2.20.0040.00417.92
8.2.10.0040.00418.05
8.2.00.0000.00719.45
8.1.280.0120.00625.92
8.1.270.0060.00323.96
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00321.99
8.1.230.0040.00822.44
8.1.220.0040.00418.61
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0040.00417.23
8.1.180.0090.00018.10
8.1.170.0030.00718.39
8.1.160.0040.00418.85
8.1.150.0040.00418.75
8.1.140.0030.00617.59
8.1.130.0030.00319.01
8.1.120.0030.00617.46
8.1.110.0080.00017.37
8.1.100.0040.00417.31
8.1.90.0040.00417.26
8.1.80.0030.00617.39
8.1.70.0000.00717.26
8.1.60.0040.00417.47
8.1.50.0030.00517.44
8.1.40.0050.00217.49
8.1.30.0060.00317.56
8.1.20.0050.00217.63
8.1.10.0000.00717.40
8.1.00.0040.00417.29
8.0.300.0040.00419.85
8.0.290.0050.00316.63
8.0.280.0080.00018.30
8.0.270.0040.00417.24
8.0.260.0030.00617.29
8.0.250.0030.00316.93
8.0.240.0070.00016.91
8.0.230.0070.00016.83
8.0.220.0030.00316.75
8.0.210.0030.00516.89
8.0.200.0000.00816.96
8.0.190.0080.00016.96
8.0.180.0070.00016.81
8.0.170.0000.00816.82
8.0.160.0040.00416.72
8.0.150.0030.00716.79
8.0.140.0000.00716.72
8.0.130.0050.00013.26
8.0.120.0040.00416.90
8.0.110.0040.00416.77
8.0.100.0040.00416.66
8.0.90.0060.00316.77
8.0.80.0080.00916.83
8.0.70.0070.00016.74
8.0.60.0040.00516.85
8.0.50.0000.00816.84
8.0.30.0090.00817.02
8.0.20.0130.00717.40
8.0.10.0070.00016.93
8.0.00.0070.01016.79
7.4.330.0050.00015.55
7.4.320.0030.00316.45
7.4.300.0030.00316.43
7.4.290.0050.00316.57
7.4.280.0000.00916.47
7.4.270.0050.00516.43
7.4.260.0070.00016.53
7.4.250.0030.00316.41
7.4.240.0040.00416.48
7.4.230.0030.00316.43
7.4.220.0030.00316.41
7.4.210.0120.00616.46
7.4.200.0000.00716.52
7.4.160.0060.00916.49
7.4.140.0110.00717.86
7.4.130.0080.01116.19
7.4.120.0090.00916.43
7.4.110.0100.00716.47
7.4.100.0070.01016.37
7.4.90.0170.00016.57
7.4.80.0090.01019.39
7.4.70.0130.00316.54
7.4.60.0060.00916.48
7.4.50.0030.01016.57
7.4.40.0150.00616.45
7.4.00.0000.01714.78
7.3.330.0060.00013.08
7.3.320.0030.00512.95
7.3.310.0030.00316.29
7.3.300.0070.00016.14
7.3.290.0030.00316.16
7.3.280.0080.00716.18
7.3.260.0100.00916.30
7.3.240.0100.01016.28
7.3.230.0100.00716.36
7.3.210.0110.01116.13
7.3.200.0040.01416.34
7.3.190.0070.01016.38
7.3.180.0090.00616.43
7.3.170.0090.00916.11
7.3.160.0030.01216.38
7.2.330.0110.00716.56
7.2.320.0080.00816.57
7.2.310.0060.01216.62
7.2.300.0100.00716.61
7.2.290.0100.00616.24
7.2.60.1430.00914.96
7.2.50.1320.00914.61
7.2.40.1480.00815.01
7.2.30.1380.00815.28
7.2.20.1100.00815.20
7.2.10.1440.01015.25
7.2.00.1500.01015.44
7.1.200.0070.00715.88
7.1.170.1520.01013.73
7.1.160.1450.01216.62
7.1.150.0990.00516.79
7.1.140.1140.01216.78
7.1.130.1590.01116.65
7.1.120.1200.00716.69
7.1.110.1160.00816.31
7.1.100.1060.00815.97
7.1.90.1090.01216.00
7.1.80.1440.01115.91
7.1.70.1210.00915.18
7.1.60.1410.02033.35
7.1.50.1230.00932.94
7.1.40.1540.01632.48
7.1.30.1440.01232.61
7.1.20.2510.01632.79
7.1.10.1150.01014.72
7.1.00.1610.01114.78

preferences:
63.99 ms | 401 KiB | 5 Q