3v4l.org

run code in 500+ PHP versions simultaneously
<?php $url = 'https://www.example.com/pagename?a=b&c=d'; $paths = [ 'gerp', 'pagename', 'cheese', ]; $path = trim(parse_url($url, PHP_URL_PATH), '/'); if ( in_array($path, $paths )) { echo 'yes'; } else { echo 'no'; }

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.70.0080.00918.49
8.5.60.0060.00118.27
8.5.50.0120.00516.46
8.5.30.0070.01017.58
8.5.20.0090.00919.55
8.5.10.0090.00920.39
8.5.00.0130.00919.94
8.4.210.0110.00821.35
8.4.180.0110.01119.59
8.4.170.0100.01123.95
8.4.160.0160.00723.93
8.4.150.0070.00516.85
8.4.140.0130.00817.46
8.4.130.0060.00417.52
8.4.120.0070.00320.73
8.4.110.0140.00718.64
8.4.100.0100.01217.81
8.4.90.0120.00917.45
8.4.80.0040.00417.78
8.4.70.0100.01017.70
8.4.60.0190.00318.91
8.4.50.0060.01019.31
8.4.40.0060.00317.90
8.4.30.0130.00618.88
8.4.20.0190.00019.88
8.4.10.0030.00623.76
8.3.300.0100.00920.53
8.3.290.0120.01220.80
8.3.280.0120.01018.37
8.3.270.0090.01016.44
8.3.260.0110.00716.73
8.3.250.0110.00718.88
8.3.240.0120.00516.39
8.3.230.0120.00716.50
8.3.220.0130.00516.45
8.3.210.0070.01216.41
8.3.200.0070.00216.68
8.3.190.0090.00618.52
8.3.180.0140.00516.72
8.3.170.0110.00718.87
8.3.160.0050.00316.46
8.3.150.0060.00318.69
8.3.140.0080.00017.19
8.3.130.0050.00318.40
8.3.120.0000.00920.53
8.3.110.0060.00316.38
8.3.100.0030.00618.19
8.3.90.0060.00926.77
8.3.80.0030.00618.31
8.3.70.0090.00616.58
8.3.60.0070.00718.20
8.3.50.0060.01319.77
8.3.40.0100.00320.34
8.3.30.0130.00318.54
8.3.20.0050.00224.18
8.3.10.0000.00724.66
8.3.00.0000.00826.16
8.2.300.0150.00518.00
8.2.290.0120.00619.01
8.2.280.0050.00320.39
8.2.270.0110.00717.09
8.2.260.0060.01317.04
8.2.250.0040.00416.49
8.2.240.0030.00617.16
8.2.230.0090.00020.94
8.2.220.0090.00024.06
8.2.210.0080.01226.77
8.2.200.0040.00418.17
8.2.190.0040.01418.17
8.2.180.0040.01125.92
8.2.170.0080.00818.96
8.2.160.0070.00722.96
8.2.150.0070.00725.66
8.2.140.0070.00024.66
8.2.130.0030.00626.16
8.2.120.0040.00426.16
8.2.110.0000.00919.27
8.2.100.0070.00417.91
8.2.90.0030.00717.75
8.2.80.0040.00418.77
8.2.70.0090.00017.48
8.2.60.0040.00417.50
8.2.50.0040.00419.23
8.2.40.0030.00619.24
8.2.30.0040.00418.03
8.2.20.0040.00419.19
8.2.10.0040.00418.04
8.2.00.0060.00319.24
8.1.340.0130.00721.67
8.1.330.0090.00816.51
8.1.320.0110.00915.93
8.1.310.0040.00416.87
8.1.300.0130.00720.23
8.1.290.0070.00430.84
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00021.25
8.1.230.0110.00018.97
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0050.00317.35
8.1.190.0000.00917.10
8.1.180.0080.00018.10
8.1.170.0000.00817.62
8.1.160.0000.00718.89
8.1.150.0070.00018.57
8.1.140.0000.00717.26
8.1.130.0050.00219.01
8.1.120.0030.00617.44
8.1.110.0080.00717.35
8.1.100.0080.00917.33
8.1.90.0110.00517.33
8.1.80.0130.00317.26
8.1.70.0090.00717.33
8.1.60.0150.00417.46
8.1.50.0130.00517.43
8.1.40.0120.00717.43
8.1.30.0140.00617.55
8.1.20.0120.00617.50
8.1.10.0160.00317.44
8.1.00.0080.00417.42
8.0.300.0030.00619.73
8.0.290.0000.00716.63
8.0.280.0040.00418.32
8.0.270.0000.00718.00
8.0.260.0030.00318.43
8.0.250.0000.00616.87
8.0.240.0040.00716.83
8.0.230.0130.00316.83
8.0.220.0110.00616.79
8.0.210.0110.00416.73
8.0.200.0140.00316.82
8.0.190.0100.00616.84
8.0.180.0100.00516.79
8.0.170.0100.00516.83
8.0.160.0090.00716.79
8.0.150.0080.00816.71
8.0.140.0110.00516.77
8.0.130.0100.00516.70
8.0.120.0100.00616.77
8.0.110.0110.00416.85
8.0.100.0100.00516.75
8.0.90.0070.00916.79
8.0.80.0110.00516.74
8.0.70.0120.00516.74
8.0.60.0070.00816.76
8.0.50.0090.00616.77
8.0.30.0110.00516.74
8.0.20.0110.00516.84
8.0.10.0100.00516.92
7.4.330.0000.00715.55
7.4.320.0090.00616.44
7.4.300.0160.00116.44
7.4.290.0130.00416.47
7.4.280.0120.00616.46
7.4.270.0100.00816.52
7.4.260.0100.00516.39
7.4.250.0050.00716.48
7.4.240.0060.00316.43
7.4.230.0120.00216.53
7.4.220.0070.00616.50
7.4.210.0080.00316.46
7.4.200.0120.00016.46
7.4.190.0090.00616.54
7.4.180.0100.00516.51
7.4.160.0090.00516.54
7.4.150.0080.00616.39
7.4.140.0100.00516.33
7.4.130.0110.00316.37
7.4.120.0070.00616.35
7.4.110.0090.00516.39
7.4.100.0080.00416.36
7.4.90.0070.00716.36
7.4.80.0100.00516.33
7.4.70.0110.00316.29
7.4.60.0110.00416.34
7.4.50.0100.00516.23
7.4.40.0100.00516.33
7.4.30.0100.00516.38
7.4.20.0120.00416.33
7.4.10.0100.00416.34
7.4.00.0110.00416.40

preferences:
57.39 ms | 1245 KiB | 5 Q