3v4l.org

run code in 300+ PHP versions simultaneously
<?php $get = file_get_contents("https://www.google.com/finance/converter?a=$amount&from=$from&to=$to"); $get = explode("<span class=bld>",$get); $get = explode("</span>",$get[1]); $converted_amount = preg_replace("/[^0-9\.]/", null, $get[0]); return round($converted_amount);

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.0120.00916.88
8.3.50.0120.00821.30
8.3.40.0070.00718.89
8.3.30.0090.00919.10
8.3.20.0040.00420.20
8.3.10.0080.00023.65
8.3.00.0040.00423.66
8.2.180.0070.01618.86
8.2.170.0070.00719.06
8.2.160.0110.00422.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00019.96
8.2.120.0080.00026.35
8.2.110.0070.00320.60
8.2.100.0060.00617.93
8.2.90.0040.00419.25
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0050.00322.30
8.2.30.0000.00720.70
8.2.20.0030.00617.98
8.2.10.0050.00218.21
8.2.00.0070.00018.04
8.1.280.0100.00725.92
8.1.270.0090.00024.02
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00323.95
8.1.230.0090.00317.86
8.1.220.0080.00017.80
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0040.00418.55
8.1.160.0040.00420.79
8.1.150.0080.00018.84
8.1.140.0040.00419.62
8.1.130.0000.00817.70
8.1.120.0040.00417.47
8.1.110.0040.00417.58
8.1.100.0040.00417.53
8.1.90.0000.00717.44
8.1.80.0030.00717.48
8.1.70.0030.00617.50
8.1.60.0000.00717.71
8.1.50.0030.00517.63
8.1.40.0000.00817.75
8.1.30.0040.00417.84
8.1.20.0040.00417.82
8.1.10.0000.00817.74
8.1.00.0040.00417.66
8.0.300.0000.00818.77
8.0.290.0050.00217.13
8.0.280.0050.00218.55
8.0.270.0070.00017.36
8.0.260.0000.00717.30
8.0.250.0000.00817.28
8.0.240.0000.00817.14
8.0.230.0000.00717.21
8.0.220.0030.00317.16
8.0.210.0000.00717.04
8.0.200.0070.00017.27
8.0.190.0030.00617.13
8.0.180.0000.00717.11
8.0.170.0000.00817.10
8.0.160.0000.00717.26
8.0.150.0030.00317.09
8.0.140.0090.00317.10
8.0.130.0000.00513.63
8.0.120.0040.00417.06
8.0.110.0000.00817.10
8.0.100.0000.00716.98
8.0.90.0040.00417.15
8.0.80.0030.01317.11
8.0.70.0040.00417.07
8.0.60.0040.00417.06
8.0.50.0050.00317.22
8.0.30.0120.00617.26
8.0.20.0100.00917.40
8.0.10.0030.00517.22
8.0.00.0090.01116.95
7.4.330.0030.00316.86
7.4.320.0030.00316.67
7.4.300.0000.00616.52
7.4.290.0000.00716.79
7.4.280.0040.00716.64
7.4.270.0000.00716.55
7.4.260.0000.00816.75
7.4.250.0000.00816.59
7.4.240.0000.00716.80
7.4.230.0040.00416.84
7.4.220.0070.01716.64
7.4.210.0070.00816.68
7.4.200.0040.00416.67
7.4.160.0080.00816.71
7.4.150.0110.00717.40
7.4.140.0140.00417.86
7.4.130.0090.01116.70
7.4.120.0140.01016.74
7.4.110.0060.01116.61
7.4.100.0110.00716.46
7.4.90.0150.00316.64
7.4.80.0100.01319.39
7.4.70.0070.01016.85
7.4.60.0120.00416.81
7.4.50.0090.00916.56
7.4.40.0100.00716.69
7.4.30.0190.00316.84
7.4.00.0070.01015.18
7.3.330.0030.00313.17
7.3.320.0050.00313.23
7.3.310.0000.00816.45
7.3.300.0030.00316.39
7.3.290.0000.00816.50
7.3.280.0080.01016.59
7.3.270.0120.00617.40
7.3.260.0100.00716.46
7.3.250.0080.01016.73
7.3.240.0110.00716.53
7.3.230.0160.00316.67
7.3.210.0150.00916.60
7.3.200.0060.01019.39
7.3.190.0080.00816.50
7.3.180.0060.01016.39
7.3.170.0110.00716.57
7.3.160.0060.01616.45
7.2.330.0140.00316.79
7.2.320.0070.01016.79
7.2.310.0000.01616.64
7.2.300.0000.01616.71
7.2.290.0070.01016.87
7.2.60.0130.00316.77
7.2.00.0060.00919.09
7.1.200.0030.00915.71
7.1.100.0040.00718.52
7.1.70.0160.01117.17
7.1.60.0070.01519.20
7.1.50.0170.00717.40
7.1.00.0000.08022.67
7.0.200.0080.00415.32
7.0.60.0070.07322.18
7.0.50.0070.08718.07
7.0.40.0130.08020.62
7.0.30.0400.06720.61
7.0.20.0370.06320.43
7.0.10.0100.07320.54
7.0.00.0070.08020.62
5.6.280.0070.03021.43
5.6.210.0070.08320.79
5.6.200.0130.03718.46
5.6.190.0170.07320.97
5.6.180.0270.04721.07
5.6.170.0470.07020.98
5.6.160.0030.05720.82
5.6.150.0030.04018.60
5.6.140.0030.04718.50
5.6.130.0070.08318.73
5.6.120.0100.07321.42
5.6.110.0100.06721.31
5.6.100.0200.06321.32
5.6.90.0100.06021.51
5.6.80.0070.08320.80
5.5.350.0330.07720.93
5.5.340.0200.06018.32
5.5.330.0000.07320.73
5.5.320.0600.05320.65
5.5.310.0170.04720.59
5.5.300.0070.03718.32
5.5.290.0000.04318.40
5.5.280.0100.08021.24
5.5.270.0000.05021.18
5.5.260.0170.06721.24
5.5.250.0100.06321.21
5.5.240.0100.06320.47

preferences:
43.7 ms | 401 KiB | 5 Q