3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = file_get_contents('http://www.sparkfun.com/commerce/product_info.php?products_id=9279'); preg_match('#<tr><th>(.*)</th> <td><b>price</b></td></tr>#', $content, $match); $price = $match[1]; preg_match('#<input type="hidden" name="quantity_on_hand" value="(.*?)">#', $content, $match); $in_stock = $match[1]; echo "Price: $price - Availability: $in_stock\n"; ?>

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.0070.01418.68
8.3.50.0090.00722.23
8.3.40.0150.00019.29
8.3.30.0160.00319.34
8.3.20.0050.00319.25
8.3.10.0090.00021.14
8.3.00.0060.00323.92
8.2.180.0180.00417.00
8.2.170.0060.00922.96
8.2.160.0060.01220.47
8.2.150.0130.00724.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00420.01
8.2.110.0030.00621.35
8.2.100.0040.00818.28
8.2.90.0070.00319.55
8.2.80.0000.00819.50
8.2.70.0070.00318.13
8.2.60.0040.00418.30
8.2.50.0080.00018.29
8.2.40.0040.00718.39
8.2.30.0030.00519.95
8.2.20.0080.00018.01
8.2.10.0050.00318.23
8.2.00.0000.00818.21
8.1.280.0070.01525.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0030.00622.81
8.1.230.0040.00821.10
8.1.220.0000.00818.04
8.1.210.0040.00419.16
8.1.200.0100.00317.47
8.1.190.0030.00617.66
8.1.180.0030.00518.10
8.1.170.0090.00019.04
8.1.160.0000.00719.02
8.1.150.0050.00318.93
8.1.140.0060.00317.70
8.1.130.0000.00718.05
8.1.120.0000.00917.66
8.1.110.0040.00417.63
8.1.100.0040.00417.67
8.1.90.0040.00417.64
8.1.80.0070.00017.66
8.1.70.0000.00717.72
8.1.60.0000.00817.71
8.1.50.0040.00417.82
8.1.40.0040.00417.86
8.1.30.0040.00417.79
8.1.20.0040.00417.86
8.1.10.0030.00517.83
8.1.00.0000.00917.80
8.0.300.0040.00420.23
8.0.290.0090.00017.00
8.0.280.0030.00318.73
8.0.270.0040.00417.53
8.0.260.0000.00717.21
8.0.250.0040.00417.41
8.0.240.0050.00517.38
8.0.230.0040.00417.49
8.0.220.0030.00317.29
8.0.210.0000.00717.29
8.0.200.0040.00417.37
8.0.190.0040.00417.33
8.0.180.0040.00417.22
8.0.170.0000.00917.22
8.0.160.0030.00717.20
8.0.150.0040.00417.23
8.0.140.0000.00817.28
8.0.130.0060.00013.85
8.0.120.0040.00417.33
8.0.110.0040.00417.50
8.0.100.0000.00817.32
8.0.90.0080.00017.37
8.0.80.0090.00617.32
8.0.70.0000.00817.19
8.0.60.0060.00317.36
8.0.50.0080.00017.30
8.0.30.0080.01217.60
8.0.20.0110.00917.78
8.0.10.0000.00817.32
8.0.00.0110.00817.18
7.4.330.0050.00015.16
7.4.320.0000.00616.71
7.4.300.0000.00716.86
7.4.290.0080.00016.93
7.4.280.0040.00416.89
7.4.270.0030.00316.94
7.4.260.0060.00013.75
7.4.250.0030.00616.98
7.4.240.0050.00316.86
7.4.230.0040.00416.90
7.4.220.0060.01516.96
7.4.210.0060.00916.95
7.4.200.0030.00516.79
7.4.190.0050.00316.77
7.4.160.0100.00717.08
7.4.150.0180.00717.40
7.4.140.0100.00917.86
7.4.130.0150.00516.96
7.4.120.0100.00716.96
7.4.110.0070.01117.06
7.4.100.0080.01116.96
7.4.90.0120.00616.96
7.4.80.0120.00919.04
7.4.70.0130.01316.89
7.4.60.0090.00917.08
7.4.50.0050.00016.86
7.4.40.0030.01422.27
7.4.30.0060.01217.07
7.4.00.0060.01115.22
7.3.330.0000.00513.53
7.3.320.0030.00313.67
7.3.310.0000.00716.57
7.3.300.0040.00316.69
7.3.290.0070.01416.86
7.3.280.0110.00716.85
7.3.270.0150.00417.40
7.3.260.0100.01218.24
7.3.250.0110.01116.91
7.3.240.0080.01116.78
7.3.230.0120.00616.89
7.3.210.0140.00316.93
7.3.200.0100.01319.39
7.3.190.0120.00616.68
7.3.180.0080.00816.98
7.3.170.0120.00816.89
7.3.160.0170.00816.87
7.3.120.0070.00815.26
7.3.110.0060.01214.93
7.3.100.0030.01415.21
7.3.90.0030.00715.04
7.3.80.0070.00315.18
7.3.70.0080.00815.30
7.3.60.0000.01615.16
7.3.50.0060.00915.38
7.3.40.0060.00915.12
7.3.30.0060.00615.37
7.3.20.0080.00416.86
7.3.10.0000.01416.70
7.3.00.0060.00316.99
7.2.330.0130.00716.96
7.2.320.0180.00016.88
7.2.310.0040.01417.03
7.2.300.0060.01017.08
7.2.290.0060.01216.84
7.2.250.0120.00415.64
7.2.240.0170.00315.24
7.2.230.0100.00715.28
7.2.220.0070.00315.31
7.2.210.0070.00715.41
7.2.200.0070.00715.15
7.2.190.0070.00315.57
7.2.180.0090.00315.33
7.2.170.0070.00315.42
7.2.60.0030.01017.41
7.1.330.0080.00416.17
7.1.320.0060.00916.17
7.1.310.0070.00716.37
7.1.300.0040.00716.32
7.1.290.0070.00716.18
7.1.280.0030.01416.18
7.1.270.0000.01215.82
7.1.260.0130.00316.04
7.1.200.0100.00716.27
7.1.70.0060.00617.25
7.1.60.0100.01619.40
7.1.50.0040.00817.09
7.1.00.0070.05722.82
7.0.200.0040.00417.05
7.0.140.0070.07022.31
7.0.60.0030.08720.44
7.0.50.0030.05018.19
7.0.40.0230.07020.53
7.0.30.0230.05020.55
7.0.20.0230.06020.53
7.0.10.0100.05020.49
7.0.00.0100.06720.49
5.6.280.0030.07721.21
5.6.210.0100.08321.17
5.6.200.0070.03718.49
5.6.190.0030.06321.02
5.6.180.4170.04021.06
5.6.170.0270.04720.83
5.6.160.0070.07720.92
5.6.150.0030.05718.36
5.6.140.0030.04018.57
5.6.130.0130.05318.60
5.6.120.0100.08021.34
5.6.110.0100.07321.53
5.6.100.0070.08021.34
5.6.90.0030.08321.24
5.6.80.0070.06320.64
5.5.350.0070.07720.66
5.5.340.0070.07718.21
5.5.330.0100.05320.82
5.5.320.0330.07720.64
5.5.310.0330.04020.77
5.5.300.0130.07718.25
5.5.290.0000.04718.37
5.5.280.0030.09021.29
5.5.270.0130.07720.99
5.5.260.0130.06021.28
5.5.250.0100.07320.98
5.5.240.0130.08320.58
5.4.450.0070.03720.02
5.4.440.0030.04019.86
5.4.430.0030.04319.88
5.4.420.0030.04020.01
5.4.410.0070.03719.85
5.4.400.0130.02719.45
5.4.390.0070.03319.54
5.4.380.0130.03019.72
5.4.370.0070.03719.45
5.4.360.0000.04019.68
5.4.350.0030.03719.72
5.4.340.0000.04019.67
5.4.320.0030.03719.77
5.4.310.0070.03319.83
5.4.300.0070.03319.65
5.4.290.0030.03719.58
5.4.280.0070.03319.68
5.4.270.0000.07719.44
5.4.260.0070.06319.54
5.4.250.0030.08019.68
5.4.240.0070.06019.54
5.4.230.0000.06719.58
5.4.220.0100.03319.64
5.4.210.0130.05319.57
5.4.200.0070.05019.83
5.4.190.0030.07019.75
5.4.180.0100.07719.57
5.4.170.0100.05719.68
5.4.160.0070.07719.64
5.4.150.0070.05319.66
5.4.140.0030.07317.07
5.4.130.0000.06716.93
5.4.120.0100.03017.11
5.4.110.0130.06716.96
5.4.100.0130.07017.23
5.4.90.0070.07017.12
5.4.80.0070.03316.97
5.4.70.0130.05017.04
5.4.60.0100.07017.20
5.4.50.0100.07317.02
5.4.40.0130.06316.90
5.4.30.0130.05317.00
5.4.20.0070.05716.93
5.4.10.0100.06317.05
5.4.00.0130.06716.53
5.3.290.0070.03314.98
5.3.280.0000.05715.01
5.3.270.0030.08314.99
5.3.260.0130.07314.91
5.3.250.0100.04315.06
5.3.240.0000.05315.04
5.3.230.0070.08015.06
5.3.220.0130.07314.86
5.3.210.0000.07015.00
5.3.200.0030.05015.05
5.3.190.0070.07315.02
5.3.180.0070.05314.86
5.3.170.0070.06314.89
5.3.160.0100.07314.93
5.3.150.0100.06014.88
5.3.140.0170.04314.85
5.3.130.0100.08014.96
5.3.120.0070.08015.03
5.3.110.0070.04015.03
5.3.100.0130.06314.49
5.3.90.0200.06014.33
5.3.80.0130.05314.47
5.3.70.0030.06314.38
5.3.60.0030.08014.38
5.3.50.0070.04714.38
5.3.40.0130.07014.41
5.3.30.0030.06314.30
5.3.20.0030.04314.15
5.3.10.0030.07314.10
5.3.00.0030.08014.05
5.2.170.0070.06011.59
5.2.160.0100.05711.49
5.2.150.0170.05011.59
5.2.140.0100.05711.43
5.2.130.0030.04311.52
5.2.120.0070.03311.50
5.2.110.0030.06311.45
5.2.100.0030.03311.44
5.2.90.0070.06311.52
5.2.80.0030.04011.53
5.2.70.0070.04311.48
5.2.60.0030.06311.50
5.2.50.0070.06011.41
5.2.40.0070.05011.43
5.2.30.0070.05711.25
5.2.20.0030.05711.36
5.2.10.0170.04311.29
5.2.00.0030.04711.02
5.1.60.0070.05310.29
5.1.50.0030.05710.35
5.1.40.0000.05710.40
5.1.30.0070.03710.63
5.1.20.0100.04710.68
5.1.10.0030.03310.41
5.1.00.0070.05710.54
5.0.50.0030.0479.02
5.0.40.0030.0478.86
5.0.30.0070.0638.70
5.0.20.0070.0438.54
5.0.10.0000.0478.47
5.0.00.0030.0678.56
4.4.90.0130.0277.84
4.4.80.0000.0237.84
4.4.70.0000.0277.84
4.4.60.0030.0237.84
4.4.50.0030.0207.84
4.4.40.0000.0577.84
4.4.30.0000.0237.84
4.4.20.0000.0337.84
4.4.10.0030.0307.84
4.4.00.0030.0477.84
4.3.110.0030.0377.84
4.3.100.0030.0337.84
4.3.90.0000.0377.84
4.3.80.0030.0407.84
4.3.70.0030.0207.84
4.3.60.0000.0277.84
4.3.50.0070.0237.84
4.3.40.0030.0537.84
4.3.30.0000.0377.84
4.3.20.0030.0307.84
4.3.10.0000.0377.84
4.3.00.0000.0377.84

preferences:
59.23 ms | 400 KiB | 5 Q