3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "Ceci n'est pas une URL."; $valid = TRUE; if (in_array(parse_url($value, PHP_URL_SCHEME), [NULL, FALSE], TRUE)) { $valid = FALSE; } var_dump($valid);

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.130.0130.00318.29
8.3.120.0040.00420.78
8.3.110.0040.00420.94
8.3.100.0130.00624.06
8.3.90.0040.00426.77
8.3.80.0070.00318.18
8.3.70.0100.01018.39
8.3.60.0110.00416.38
8.3.50.0110.01116.48
8.3.40.0100.01022.06
8.3.30.0070.01418.34
8.3.20.0080.00024.18
8.3.10.0070.00024.66
8.3.00.0090.00026.16
8.2.250.0090.00316.46
8.2.240.0120.00317.25
8.2.230.0000.00822.58
8.2.220.0160.00337.54
8.2.210.0040.00426.77
8.2.200.0030.00618.54
8.2.190.0110.01116.58
8.2.180.0120.00318.42
8.2.170.0170.00018.83
8.2.160.0100.00322.96
8.2.150.0000.00925.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0070.01119.54
8.2.110.0100.00020.53
8.2.100.0110.00017.66
8.2.90.0000.00817.63
8.2.80.0000.00818.61
8.2.70.0040.00417.50
8.2.60.0090.00916.88
8.2.50.0100.00817.00
8.2.40.0120.00417.00
8.2.30.0080.00817.12
8.2.20.0080.00817.13
8.2.10.0120.00417.13
8.2.00.0060.00917.25
8.1.300.0080.00015.79
8.1.290.0060.00318.88
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00023.54
8.1.230.0090.00320.94
8.1.220.0070.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00617.23
8.1.190.0110.00516.63
8.1.180.0050.01116.75
8.1.170.0130.00316.88
8.1.160.0080.00816.75
8.1.150.0100.00616.88
8.1.140.0130.00417.09
8.1.130.0100.00716.88
8.1.120.0130.00317.11
8.1.110.0130.00417.00
8.1.100.0130.00317.00
8.1.90.0140.00316.99
8.1.80.0160.00316.88
8.1.70.0170.00316.98
8.1.60.0170.00217.34
8.1.50.0160.00517.12
8.1.40.0120.00617.23
8.1.30.0120.00517.13
8.1.20.0120.00617.38
8.1.10.0130.00516.97
8.1.00.0140.00317.00
8.0.300.0050.00218.77
8.0.290.0000.00716.63
8.0.280.0160.00016.52
8.0.270.0120.00416.52
8.0.260.0100.00616.52
8.0.250.0160.00016.63
8.0.240.0150.00016.52
8.0.230.0070.01016.52
8.0.220.0130.00316.52
8.0.210.0120.00416.52
8.0.200.0130.00416.62
8.0.190.0060.00916.63
8.0.180.0080.00816.52
8.0.170.0100.00716.62
8.0.160.0160.00316.52
8.0.150.0090.00916.52
8.0.140.0140.00616.52
8.0.130.0090.01216.52
8.0.120.0170.00016.52
8.0.110.0130.00416.52
8.0.100.0160.00016.52
8.0.90.0160.00016.63
8.0.80.0080.00816.52
8.0.70.0160.00016.52
8.0.60.0120.00416.63
8.0.50.0110.00516.52
8.0.30.0110.00516.52
8.0.20.0050.01116.52
8.0.10.0090.00616.75

preferences:
26.06 ms | 403 KiB | 5 Q