3v4l.org

run code in 300+ PHP versions simultaneously
<?php $XMLContent=file("http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml"); //the file is updated daily between 2.15 p.m. and 3.00 p.m. CET foreach($XMLContent as $line){ if(preg_match("/currency='([[:alpha:]]+)'/",$line,$currencyCode)){ if(preg_match("/rate='([[:graph:]]+)'/",$line,$rate)){ //Output the value of 1EUR for a currency code echo'1&euro;='.$rate[1].' '.$currencyCode[1].'<br/>'; //-------------------------------------------------- //Here you can add your code for inserting //$rate[1] and $currencyCode[1] into your database //-------------------------------------------------- } } } ?>

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.0090.00918.80
8.3.50.0150.00616.23
8.3.40.0120.00319.00
8.3.30.0040.01118.79
8.3.20.0110.00420.54
8.3.10.0050.00323.90
8.3.00.0040.00422.60
8.2.180.0160.00318.54
8.2.170.0120.00922.96
8.2.160.0070.00722.21
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0090.00017.88
8.2.110.0030.00620.78
8.2.100.0090.00317.88
8.2.90.0080.00019.48
8.2.80.0030.00717.97
8.2.70.0090.00017.88
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0090.00021.44
8.2.30.0040.00418.32
8.2.20.0050.00317.88
8.2.10.0040.00418.31
8.2.00.0000.00718.39
8.1.280.0120.00625.92
8.1.270.0060.00320.42
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00324.04
8.1.230.0080.00417.60
8.1.220.0050.00317.80
8.1.210.0030.00518.77
8.1.200.0040.00417.48
8.1.190.0040.00417.38
8.1.180.0070.00018.10
8.1.170.0050.00318.83
8.1.160.0050.00322.26
8.1.150.0040.00419.07
8.1.140.0040.00417.73
8.1.130.0000.00817.95
8.1.120.0050.00217.49
8.1.110.0040.00717.58
8.1.100.0030.00617.57
8.1.90.0030.00917.58
8.1.80.0050.00217.54
8.1.70.0070.00017.49
8.1.60.0080.00317.67
8.1.50.0040.00417.66
8.1.40.0030.00617.68
8.1.30.0080.00017.87
8.1.20.0000.00817.77
8.1.10.0040.00417.65
8.1.00.0000.00817.53
8.0.300.0060.00318.77
8.0.290.0000.00716.88
8.0.280.0070.00018.56
8.0.270.0000.00817.37
8.0.260.0040.00417.46
8.0.250.0000.00717.05
8.0.240.0000.00717.19
8.0.230.0070.00017.07
8.0.220.0070.00017.08
8.0.210.0000.00716.99
8.0.200.0000.00617.23
8.0.190.0030.00617.15
8.0.180.0070.00017.08
8.0.170.0000.00717.10
8.0.160.0040.00417.10
8.0.150.0040.00417.05
8.0.140.0000.00717.04
8.0.130.0060.00013.64
8.0.120.0030.00617.11
8.0.110.0030.00517.09
8.0.100.0000.00817.20
8.0.90.0030.00517.22
8.0.80.0120.00417.16
8.0.70.0030.00517.06
8.0.60.0030.00617.16
8.0.50.0000.00817.13
8.0.30.0090.01217.23
8.0.20.0130.00817.40
8.0.10.0060.00317.25
8.0.00.0070.01016.86
7.4.330.0030.00315.40
7.4.320.0000.00616.66
7.4.300.0000.00616.63
7.4.290.0070.00016.71
7.4.280.0000.00816.57
7.4.270.0000.00716.66
7.4.260.0040.00416.58
7.4.250.0060.00316.82
7.4.240.0020.00516.83
7.4.230.0070.00316.91
7.4.220.0190.00916.73
7.4.210.0060.00916.86
7.4.200.0070.00016.89
7.4.160.0090.00616.78
7.4.150.0150.00417.40
7.4.140.0100.01017.86
7.4.130.0150.00816.78
7.4.120.0070.01216.79
7.4.110.0120.00616.82
7.4.100.0090.00916.69
7.4.90.0090.00916.68
7.4.80.0200.00319.39
7.4.70.0110.00816.74
7.4.60.0060.01216.61
7.4.50.0060.00316.79
7.4.40.0130.00416.70
7.4.30.0030.01516.67
7.4.00.0070.01015.27
7.3.330.0030.00313.51
7.3.320.0070.00013.50
7.3.310.0050.00316.50
7.3.300.0040.00416.52
7.3.290.0130.00616.52
7.3.280.0080.01116.42
7.3.270.0120.00917.40
7.3.260.0110.00716.61
7.3.250.0110.01116.51
7.3.240.0090.01516.35
7.3.230.0090.00916.40
7.3.210.0140.00316.59
7.3.200.0130.00819.39
7.3.190.0110.00516.55
7.3.180.0120.00416.66
7.3.170.0150.00916.56
7.3.160.0100.00716.47
7.3.120.0040.01115.02
7.3.110.0040.01114.72
7.3.100.0030.01014.89
7.3.90.0100.00715.00
7.3.80.0120.00315.02
7.3.70.0040.00914.99
7.3.60.0060.01015.07
7.3.50.0030.01014.81
7.3.40.0100.00715.02
7.3.30.0040.00715.16
7.3.20.0060.00916.71
7.3.10.0030.01017.05
7.3.00.0080.00716.93
7.2.330.0140.00617.00
7.2.320.0030.01616.71
7.2.310.0150.00916.91
7.2.300.0060.01116.79
7.2.290.0070.01116.98
7.2.250.0170.00314.76
7.2.240.0030.01615.23
7.2.230.0030.01315.21
7.2.220.0100.00015.05
7.2.210.0030.01415.48
7.2.200.0030.00615.28
7.2.190.0060.00915.25
7.2.180.0090.00014.98
7.2.170.0030.00714.98
7.2.130.0060.00917.19
7.2.120.0110.00617.20
7.2.110.0030.01016.77
7.2.100.0030.00917.00
7.2.90.0040.01516.80
7.2.80.0100.00316.95
7.2.70.0060.00917.14
7.2.60.0030.01017.12
7.2.50.0000.01016.95
7.2.40.0030.00817.20
7.2.30.0040.01117.28
7.2.20.0070.00317.04
7.2.10.0030.00617.26
7.2.00.0130.01118.26
7.1.330.0080.00816.04
7.1.320.0040.01115.98
7.1.310.0040.01215.91
7.1.300.0030.01415.84
7.1.290.0100.00315.64
7.1.280.0080.00416.10
7.1.270.0110.00315.90
7.1.260.0040.01415.95
7.1.250.0090.00616.12
7.1.200.0060.00615.73
7.1.100.0070.01318.45
7.1.70.0080.00817.56
7.1.60.0070.01820.03
7.1.50.0090.01616.83
7.1.00.0030.07722.86
7.0.200.0320.00315.29
7.0.60.0100.04020.29
7.0.50.0070.08018.14
7.0.40.0130.04720.61
7.0.30.0570.06720.49
7.0.20.0370.07320.53
7.0.10.0030.04320.56
7.0.00.0070.03720.46
5.6.280.0030.05721.57
5.6.210.0070.08320.96
5.6.200.0170.07318.57
5.6.190.0030.04321.12
5.6.180.0270.08021.14
5.6.170.0200.05020.88
5.6.160.0000.04320.85
5.6.150.0000.08718.66
5.6.140.0100.04718.39
5.6.130.0130.03318.56
5.6.120.0100.08321.51
5.6.110.0100.08321.50
5.6.100.0170.07021.27
5.6.90.0200.06021.24
5.6.80.0070.07720.80
5.5.350.0230.06720.76
5.5.340.0170.07318.37
5.5.330.0100.04020.84
5.5.320.0370.05320.72
5.5.310.0370.04320.62
5.5.300.0000.04318.53
5.5.290.0070.07318.28
5.5.280.0070.03721.25
5.5.270.0100.07321.24
5.5.260.0000.04320.98
5.5.250.0170.07320.85
5.5.240.3570.03320.54
5.4.450.0570.06019.76
5.4.440.0170.05319.71
5.4.430.0730.06019.75
5.4.420.0700.06019.59
5.4.410.0730.05019.72
5.4.400.0100.05019.53
5.4.390.0570.06319.43
5.4.380.0930.05719.48
5.4.370.0630.06019.52
5.4.360.0870.04319.28
5.4.350.0870.05319.43
5.4.340.0770.07719.27
5.4.320.0830.07019.30
5.4.310.0870.05719.54
5.4.300.0700.05719.30
5.4.290.1030.05719.22
5.4.280.0670.05719.31
5.4.270.0670.06319.30
5.4.260.0700.05319.39
5.4.250.0700.06319.30
5.4.240.0800.06319.29
5.4.230.0700.05319.45
5.4.220.0770.06719.30
5.4.210.0700.05719.27
5.4.200.0900.05017.13
5.4.190.0700.05019.32
5.4.180.0730.06719.27
5.4.170.0830.05019.27
5.4.160.0730.05719.25
5.4.150.0900.04019.29
5.4.140.0900.06016.79
5.4.130.0800.04016.66
5.4.120.0600.05316.82
5.4.110.1070.05016.75
5.4.100.0870.05316.93
5.4.90.0700.05316.79
5.4.80.0870.05316.82
5.4.70.0830.05016.66
5.4.60.0470.02317.12
5.4.50.0170.04317.11
5.4.40.0170.03717.07
5.4.30.0270.03017.11
5.4.20.0330.05716.89

preferences:
56.68 ms | 400 KiB | 5 Q