3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $regexp = '^((http://)|(https://)|(mailto:)|(ftp://))?(([a-zA-Z0-9_.!~*\'()-]|(%[0-9a-fA-F]{2})|[;&=+$,])+(:([a-zA-Z0-9_.!~*\'()-]|(%[0-9a-fA-F]{2})|[;:&=+$,])+){0}@){0}((((((2(([0-4][0-9])|(5[0-5])))|([01]?[0-9]?[0-9]))\.){3}((2(([0-4][0-9])|(5[0-5])))|([01]?[0-9]?[0-9]))))|(([a-zA-Z0-9](([a-zA-Z0-9-]{0,62})[a-zA-Z0-9])?\.)*([a-zA-Z](([a-zA-Z0-9-]*)[a-zA-Z0-9])?)))?(:(([0-5]?[0-9]{1,4})|(6[0-4][0-9]{3})|(65[0-4][0-9]{2})|(655[0-2][0-9])|(6553[0-5])))?(/((;)?([a-zA-Z0-9_.!~*\'()-]|(%[0-9a-fA-F]{2})|[:@&=+$,])+(/)?)*)?(\?([;/?:@&=+$,]|[a-zA-Z0-9_.!~*\'()-]|(%[0-9a-fA-F]{2}))*)?(#([;/?:@&=+$,]|[a-zA-Z0-9_.!~*\'()-]|(%[0-9a-fA-F]{2}))*)?$'; $urladdr = '89.221.92.122/api/xml'; $result = eregi($regexp, $urladdr); var_dump($result);

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.0040.01216.63
8.3.50.0070.01422.04
8.3.40.0110.01118.98
8.3.30.0100.00619.23
8.3.20.0040.00420.20
8.3.10.0050.00221.73
8.3.00.0000.00720.69
8.2.180.0130.00716.88
8.2.170.0070.01422.96
8.2.160.0140.00022.16
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00420.47
8.2.110.0060.00321.13
8.2.100.0090.00317.78
8.2.90.0040.00419.52
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0000.01617.55
8.2.50.0000.00818.07
8.2.40.0040.00418.03
8.2.30.0040.00417.93
8.2.20.0040.00417.65
8.2.10.0040.00419.57
8.2.00.0040.00417.87
8.1.280.0110.00425.92
8.1.270.0050.00323.78
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.14
8.1.230.0080.00420.89
8.1.220.0000.00717.74
8.1.210.0000.00718.93
8.1.200.0040.00717.23
8.1.190.0060.00317.53
8.1.180.0000.00818.10
8.1.170.0040.00418.46
8.1.160.0000.00721.96
8.1.150.0040.00418.58
8.1.140.0000.00717.31
8.1.130.0070.00017.85
8.1.120.0040.00417.46
8.1.110.0000.00817.37
8.1.100.0000.00717.39
8.1.90.0000.00717.47
8.1.80.0030.00517.30
8.1.70.0070.00017.34
8.1.60.0080.00017.42
8.1.50.0000.00817.60
8.1.40.0040.00417.51
8.1.30.0040.00417.63
8.1.20.0000.00817.64
8.1.10.0070.00017.56
8.1.00.0000.00717.38
8.0.300.0000.00719.83
8.0.290.0000.00716.63
8.0.280.0040.00418.36
8.0.270.0030.00417.14
8.0.260.0000.00616.89
8.0.250.0030.00316.94
8.0.240.0000.00717.00
8.0.230.0000.00616.82
8.0.220.0040.00416.89
8.0.210.0070.00016.87
8.0.200.0030.00316.91
8.0.190.0060.00316.83
8.0.180.0000.01116.83
8.0.170.0050.00216.93
8.0.160.0070.00016.96
8.0.150.0040.00416.89
8.0.140.0000.00716.71
8.0.130.0030.00313.40
8.0.120.0050.00316.82
8.0.110.0050.00216.82
8.0.100.0070.00016.71
8.0.90.0030.00516.76
8.0.80.0060.00916.82
8.0.70.0030.00616.90
8.0.60.0070.00016.93
8.0.50.0000.00716.92
8.0.30.0090.01017.12
8.0.20.0060.01217.40
8.0.10.0000.00716.90
8.0.00.0110.00616.73
7.4.330.0050.00015.07
7.4.320.0000.00816.52
7.4.300.0000.00616.52
7.4.290.0000.00716.54
7.4.280.0030.00616.45
7.4.270.0030.00316.44
7.4.260.0030.00316.54
7.4.250.0040.00416.57
7.4.240.0050.00216.46
7.4.230.0030.00616.51
7.4.220.0100.01016.52
7.4.210.0020.01316.57
7.4.200.0030.00316.67
7.4.190.0040.00416.57
7.4.160.0160.00316.64
7.4.150.0140.01117.40
7.4.140.0110.00717.86
7.4.130.0100.00816.53
7.4.120.0100.01016.43
7.4.110.0160.00716.52
7.4.100.0130.00616.78
7.4.90.0070.01116.57
7.4.80.0070.01016.61
7.4.70.0050.01916.75
7.4.60.0090.00916.51
7.4.50.0030.00616.43
7.4.40.0110.00422.77
7.4.30.0130.00316.75
7.4.00.0050.01114.86
7.3.330.0050.00013.06
7.3.320.0000.00513.10
7.3.310.0000.00716.31
7.3.300.0060.00016.21
7.3.290.0070.00716.27
7.3.280.0100.00816.25
7.3.270.0100.01117.40
7.3.260.0070.01116.46
7.3.250.0070.00916.41
7.3.240.0040.01416.48
7.3.230.0040.01116.39
7.3.210.0150.00616.51
7.3.200.0130.00719.39
7.3.190.0130.00316.23
7.3.180.0060.00916.20
7.3.170.0040.01216.66
7.3.160.0080.00816.52
7.3.120.0070.00914.70
7.3.110.0100.00714.74
7.3.100.0000.01514.57
7.3.90.0100.00314.88
7.3.80.0000.01414.71
7.3.70.0030.00914.66
7.3.60.0040.01414.72
7.3.50.0100.00714.59
7.3.40.0030.01214.41
7.3.30.0060.01214.75
7.3.20.0100.01016.57
7.3.10.0090.00716.62
7.3.00.0060.00716.66
7.2.330.0050.01316.63
7.2.320.0100.00716.50
7.2.310.0170.00016.55
7.2.300.0030.01416.23
7.2.290.0040.01216.49
7.2.250.0030.01215.03
7.2.240.0030.01714.71
7.2.230.0000.01814.77
7.2.220.0040.01115.00
7.2.210.0120.00315.01
7.2.200.0070.01114.72
7.2.190.0040.01514.83
7.2.180.0070.00714.94
7.2.170.0100.00314.79
7.2.130.0030.00716.73
7.2.120.0030.00616.84
7.2.110.0060.00616.92
7.2.100.0030.01016.77
7.2.90.0000.00916.88
7.2.80.0030.01016.78
7.2.70.0070.00716.84
7.2.60.0080.00516.59
7.2.50.0040.00716.79
7.2.40.0000.01316.91
7.2.30.0040.01116.62
7.2.20.0060.00316.51
7.2.10.0030.00716.46
7.2.00.0060.00718.14
7.1.330.0100.00615.55
7.1.320.0100.00715.35
7.1.310.0070.01015.70
7.1.300.0040.01215.52
7.1.290.0030.01215.47
7.1.280.0000.01715.52
7.1.270.0060.00915.63
7.1.260.0070.00715.72
7.1.250.0100.00315.40
7.1.200.0070.00315.54
7.1.100.0110.00318.00
7.1.70.0000.00717.04
7.1.60.0170.00719.27
7.1.50.0100.01016.83
7.1.00.0030.07722.35
7.0.200.0140.00316.56
7.0.140.0030.06722.09
7.0.100.0030.08320.10
7.0.90.0100.08019.88
7.0.80.0070.08019.93
7.0.70.0430.07020.02
7.0.60.0430.07019.96
7.0.50.0500.08020.35
7.0.40.0070.08319.95
7.0.30.0270.06020.11
7.0.20.0100.05719.96
7.0.10.0130.07720.08
7.0.00.0100.07020.05
5.6.280.0030.07720.81
5.6.250.0130.07020.63
5.6.240.0200.05320.69
5.6.230.0100.07720.63
5.6.220.0030.08320.49
5.6.210.0030.08720.45
5.6.200.0130.05321.17
5.6.190.0030.08320.93
5.6.180.0070.08021.04
5.6.170.0030.09021.07
5.6.160.0170.07321.11
5.6.150.0100.06021.04
5.6.140.0130.08021.00
5.6.130.0000.07721.02
5.6.120.0100.08321.10
5.6.110.0100.04321.00
5.6.100.0030.08321.04
5.6.90.0170.07021.02
5.6.80.0070.07720.55
5.6.70.0170.07320.32
5.6.60.0130.07320.47
5.6.50.0070.07720.41
5.6.40.0170.05020.43
5.6.30.0130.05720.43
5.6.20.0000.07020.44
5.6.10.0070.08020.39
5.6.00.0030.08020.35
5.5.380.0070.08320.39
5.5.370.0130.07320.32
5.5.360.0070.05020.41
5.5.350.0030.08720.39
5.5.340.0100.08020.78
5.5.330.0170.06320.73
5.5.320.0030.05320.73
5.5.310.0070.06320.88
5.5.300.0200.06320.79
5.5.290.0070.08320.90
5.5.280.0100.07320.82
5.5.270.0170.06320.91
5.5.260.0070.05320.79
5.5.250.0070.07720.72
5.5.240.0170.07020.00
5.5.230.0000.08320.01
5.5.220.0070.07320.30
5.5.210.0070.08320.19
5.5.200.0070.08020.20
5.5.190.0070.08020.24
5.5.180.0100.07320.25
5.5.160.0070.08020.21
5.5.150.0070.07019.98
5.5.140.0100.07320.17
5.5.130.0100.07320.10
5.5.120.0000.07720.20
5.5.110.0000.07320.17
5.5.100.0100.06720.10
5.5.90.0200.06020.14
5.5.80.0030.07320.00
5.5.70.0200.06720.03
5.5.60.0030.07020.15
5.5.50.0230.06020.05
5.5.40.0100.06720.02
5.5.30.0170.06720.04
5.5.20.0030.08320.04
5.5.10.0100.07720.06
5.5.00.0000.08020.04
5.4.450.0100.08019.48
5.4.440.0100.06719.12
5.4.430.0170.07719.25
5.4.420.0070.07319.58
5.4.410.0100.07719.27
5.4.400.0070.07719.09
5.4.390.0030.08018.84
5.4.380.0130.07019.04
5.4.370.0100.05019.15
5.4.360.0070.07318.91
5.4.350.0070.06019.13
5.4.340.0100.07718.95
5.4.320.0130.06718.79
5.4.310.0070.06319.14
5.4.300.0030.08318.91
5.4.290.0100.05018.99
5.4.280.0000.07719.11
5.4.270.0200.06319.25
5.4.260.0100.07318.97
5.4.250.0170.05318.90
5.4.240.0030.06019.06
5.4.230.0030.07019.23
5.4.220.0100.04718.90
5.4.210.0000.08319.08
5.4.200.0030.04318.82
5.4.190.0070.07718.94
5.4.180.0100.07018.95
5.4.170.0070.07718.81
5.4.160.0070.07318.97
5.4.150.0070.08019.22
5.4.140.0030.06016.27
5.4.130.0170.06016.23
5.4.120.0100.05316.28
5.4.110.0070.07016.36
5.4.100.0000.07316.34
5.4.90.0070.07016.24
5.4.80.0070.06716.25
5.4.70.0100.04716.34
5.4.60.0070.07016.43
5.4.50.0070.04016.24
5.4.40.0130.05716.30
5.4.30.0030.04716.34
5.4.20.0030.05316.33
5.4.10.0000.04316.32
5.4.00.0100.03015.69
5.3.290.0100.07714.66
5.3.280.0070.07314.57
5.3.270.0030.08014.57
5.3.260.0070.06714.47
5.3.250.0130.05014.61
5.3.240.0130.06714.59
5.3.230.0130.07014.59
5.3.220.0070.06714.52
5.3.210.0100.07314.54
5.3.200.0100.07014.39
5.3.190.0200.05314.56
5.3.180.0000.05014.57
5.3.170.0030.07714.57
5.3.160.0030.05314.56
5.3.150.0030.04014.55
5.3.140.0000.05314.43
5.3.130.0000.04014.55
5.3.120.0000.04714.50
5.3.110.0000.04014.40
5.3.100.0070.06014.00
5.3.90.0130.03014.00
5.3.80.0100.04714.02
5.3.70.0100.04014.00
5.3.60.0030.03714.00
5.3.50.0000.04714.00
5.3.40.0100.03014.00
5.3.30.0030.03714.00
5.3.20.0000.04014.00
5.3.10.0030.04314.00
5.3.00.0100.06014.00
5.2.170.0030.04014.00
5.2.160.0100.05014.00
5.2.150.0000.03314.00
5.2.140.0070.05014.00
5.2.130.0030.02714.00
5.2.120.0100.03714.00
5.2.110.0070.04714.00
5.2.100.0030.06714.00
5.2.90.0030.03314.00
5.2.80.0030.03314.00
5.2.70.0100.05714.00
5.2.60.0030.05314.00
5.2.50.0000.03314.00
5.2.40.0030.03314.00
5.2.30.0000.06314.00
5.2.20.0000.06714.00
5.2.10.0100.05314.00
5.2.00.0030.06314.00
5.1.60.0030.04314.00
5.1.50.0000.05714.00
5.1.40.0070.05314.00
5.1.30.0030.05314.00
5.1.20.0070.03314.00
5.1.10.0100.02014.00
5.1.00.0000.02714.00
5.0.50.0070.02014.00
5.0.40.0000.03314.00
5.0.30.0070.05314.00
5.0.20.0030.04014.00
5.0.10.0030.02014.00
5.0.00.0030.03014.00
4.4.90.0030.03314.00
4.4.80.0000.02314.00
4.4.70.0000.03314.00
4.4.60.0130.01714.00
4.4.50.0030.03314.00
4.4.40.0000.03314.00
4.4.30.0070.02714.00
4.4.20.0000.03014.00
4.4.10.0000.02014.00
4.4.00.0030.02314.00
4.3.110.0030.01714.00
4.3.100.0000.01714.00
4.3.90.0030.01314.00
4.3.80.0000.02714.00
4.3.70.0000.02014.00
4.3.60.0000.01714.00
4.3.50.0000.02714.00
4.3.40.0030.02314.00
4.3.30.0000.01714.00
4.3.20.0030.02314.00
4.3.10.0030.02714.00
4.3.00.0000.02714.00

preferences:
52.28 ms | 401 KiB | 5 Q