3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variable1 = fopen("https://en.wikipedia.org/w/api.php?action=query&prop=pageimages&format=json&piprop=original&titles=Tomoyasu_Hotei", "r"); $variable2 = stream_get_contents($variable1); fclose($variable1); $variable3 = json_decode($variable2, true); $variable4 = $variable3["query"]["pages"]; echo "<pre>"; var_dump($variable4); echo "</pre>";

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.40.0030.01318.67
8.3.30.0200.00318.84
8.3.20.0000.00821.73
8.3.10.0000.00821.79
8.3.00.0060.00320.77
8.2.170.0000.01422.96
8.2.160.0100.00322.96
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0100.00019.08
8.2.120.0050.00326.35
8.2.110.0100.00022.27
8.2.100.0040.00817.91
8.2.90.0030.00518.89
8.2.80.0030.00617.97
8.2.70.0040.00417.80
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0050.00319.04
8.2.30.0040.00419.26
8.2.20.0070.00017.93
8.2.10.0000.00717.99
8.2.00.0030.00618.12
8.1.270.0030.00523.97
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0080.00422.25
8.1.230.0040.00717.70
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0050.00317.25
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0000.00818.84
8.1.150.0020.00519.04
8.1.140.0020.00517.65
8.1.130.0040.00418.91
8.1.120.0050.00317.31
8.1.110.0040.00417.30
8.1.100.0040.00417.25
8.1.90.0000.00917.41
8.1.80.0040.00417.32
8.1.70.0000.00917.46
8.1.60.0050.00317.54
8.1.50.0040.00417.55
8.1.40.0040.00417.43
8.1.30.0040.00417.56
8.1.20.0040.00417.62
8.1.10.0080.00017.48
8.1.00.0000.00717.45
8.0.300.0040.00418.77
8.0.290.0000.00816.58
8.0.280.0030.00318.37
8.0.270.0000.00817.15
8.0.260.0040.00417.20
8.0.250.0030.00317.08
8.0.240.0040.00417.02
8.0.230.0030.00617.07
8.0.220.0000.00716.88
8.0.210.0000.00716.86
8.0.200.0000.00717.01
8.0.190.0040.00417.04
8.0.180.0000.00716.99
8.0.170.0060.00316.97
8.0.160.0050.00316.95
8.0.150.0040.00417.02
8.0.140.0040.00417.01
8.0.130.0030.00313.36
8.0.120.0030.00616.85
8.0.110.0000.00716.84
8.0.100.0040.00416.80
8.0.90.0040.00416.96
8.0.80.0120.01216.88
8.0.70.0040.00416.78
8.0.60.0000.00716.77
8.0.50.0040.00416.97
8.0.30.0130.00517.06
8.0.20.0130.00617.40
8.0.10.0040.00417.04
8.0.00.0070.01216.67
7.4.330.0050.00016.74
7.4.320.0000.00616.45
7.4.300.0030.00316.47
7.4.290.0040.00416.57
7.4.280.0090.00016.46
7.4.270.0070.00016.54
7.4.260.0000.00816.54
7.4.250.0000.00716.43
7.4.240.0030.00616.45
7.4.230.0000.00716.22
7.4.220.0030.00516.58
7.4.210.0080.00816.60
7.4.200.0000.00816.35
7.4.160.0050.01116.50
7.4.140.0120.00717.86
7.4.130.0110.00716.56
7.4.120.0070.01216.49
7.4.110.0060.01116.73
7.4.100.0050.01416.57
7.4.90.0030.01416.57
7.4.80.0170.00719.39
7.4.70.0090.01216.65
7.4.60.0030.01416.61
7.4.50.0040.01216.49
7.4.40.0090.00616.50
7.4.10.0110.00715.05
7.4.00.0060.01114.99
7.3.330.0020.00213.31
7.3.320.0050.00013.17
7.3.310.0030.00316.27
7.3.300.0030.00316.29
7.3.290.0070.00016.32
7.3.280.0090.00716.42
7.3.260.0090.01116.35
7.3.240.0110.00816.46
7.3.230.0090.00916.32
7.3.210.0090.00916.44
7.3.200.0070.01016.42
7.3.190.0080.00816.29
7.3.180.0100.01116.39
7.3.170.0030.01316.30
7.3.160.0090.01216.51
7.3.130.0090.00914.59
7.3.120.0040.01414.65
7.3.110.0050.01014.90
7.3.100.0060.00814.82
7.3.90.0050.00814.81
7.3.80.0050.00515.01
7.3.70.0070.00714.77
7.3.60.0080.00614.58
7.3.50.0070.00514.67
7.3.40.0050.00814.85
7.3.30.0020.01114.59
7.3.20.0040.01216.54
7.3.10.0060.01016.49
7.3.00.0050.01016.71
7.2.330.0120.00416.66
7.2.320.0110.00816.78
7.2.310.0060.01616.74
7.2.300.0060.01216.34
7.2.290.0170.00016.73
7.2.260.0110.00714.90
7.2.250.0060.01114.66
7.2.240.0100.00615.20
7.2.230.0060.00914.88
7.2.220.0080.00914.89
7.2.210.0000.01515.14
7.2.200.0050.01015.05
7.2.190.0050.01115.11
7.2.180.0040.01115.13
7.2.170.0030.00915.08
7.2.160.0090.00914.84
7.2.150.0070.01416.90
7.2.140.0130.00716.48
7.2.130.0000.00917.04
7.2.120.0090.00616.86
7.2.110.0060.00816.51
7.2.100.0000.01216.92
7.2.90.0060.00916.67
7.2.80.0030.01417.03
7.2.70.0090.00616.63
7.2.60.0220.00216.82
7.2.50.0090.00316.90
7.2.40.2080.01017.45
7.2.30.2350.01317.47
7.2.20.1400.01117.26
7.2.10.1450.01417.68
7.2.00.1200.01017.30
7.1.330.0030.01315.71
7.1.320.0060.00815.80
7.1.310.0030.01115.81
7.1.300.0070.00515.77
7.1.290.0080.00515.52
7.1.280.0060.00815.86
7.1.270.0050.00915.81
7.1.260.0030.01015.89
7.1.250.0000.01015.83
7.1.240.0060.00615.89
7.1.230.0070.00715.93
7.1.220.0000.01115.84
7.1.210.0000.01315.80
7.1.200.0040.01015.76
7.1.190.0000.00915.92
7.1.180.0000.01515.71
7.1.170.0030.01015.72
7.1.160.1760.00816.30
7.1.150.2070.01016.41
7.1.140.1530.01116.13
7.1.130.1290.01116.24
7.1.120.1300.00916.61
7.1.110.1390.01116.31
7.1.100.1820.00616.14
7.1.90.1990.01016.03
7.1.80.1710.00815.85
7.1.70.2350.01015.49
7.1.60.2520.01124.74
7.1.50.3280.00924.61
7.1.40.2230.01024.20
7.1.30.1980.01024.18
7.1.20.2900.01624.34
7.1.10.2340.00615.45
7.1.00.0070.00715.49
7.0.330.0070.00715.25
7.0.320.0000.00915.17
7.0.310.0060.00615.16
7.0.300.0090.00315.44
7.0.290.0060.00315.37
7.0.280.0080.00415.52
7.0.270.0100.00715.38
7.0.260.0000.01115.41
7.0.250.0060.00315.34
7.0.240.0030.00815.51
7.0.230.0030.00915.32
7.0.220.0090.00015.39
7.0.210.0110.00415.35
7.0.200.0060.00815.43
7.0.190.0030.00715.24
7.0.180.0070.00715.41
7.0.170.0060.00915.20
7.0.160.0090.00315.53
7.0.150.0000.01215.06
7.0.140.0040.00815.60
7.0.130.0040.00715.10
7.0.120.0000.01015.13
7.0.110.0000.01415.56
7.0.100.0050.00515.25
7.0.90.0030.00915.51
7.0.80.0040.01115.39
7.0.70.0090.00615.42
7.0.60.0060.00315.05
7.0.50.0040.01115.51
7.0.40.0070.00713.05
7.0.30.0000.01413.55
7.0.20.0050.00513.56
7.0.10.0110.00313.53
7.0.00.0040.00413.38
5.6.400.0120.00614.36
5.6.390.0060.00314.37
5.6.380.0070.00714.12
5.6.370.0070.00314.49
5.6.360.0080.00814.61
5.6.350.0030.00614.40
5.6.340.0000.01014.54
5.6.330.0110.00414.55
5.6.320.0070.00313.98
5.6.310.0110.00414.61
5.6.300.0080.00614.27
5.6.290.0000.01114.26
5.6.280.0000.01014.55
5.6.270.0030.01014.39
5.6.260.0030.00714.26
5.6.250.0070.00314.41
5.6.240.0030.00714.29
5.6.230.0100.00314.20
5.6.220.0070.00314.26
5.6.210.0030.01014.26
5.6.200.0000.01314.27
5.6.190.0000.00914.20
5.6.180.0100.00314.59
5.6.170.0110.00313.98
5.6.160.0000.00914.07
5.6.150.0030.00614.24
5.6.140.0000.01414.14
5.6.130.0040.01214.38
5.6.120.0000.01414.09
5.6.110.0030.00614.36
5.6.100.0040.01114.41
5.6.90.0000.01414.11
5.6.80.0030.00614.37
5.6.70.0000.01114.36
5.6.60.0060.00614.19
5.6.50.0080.00414.50
5.6.40.0110.00414.38
5.6.30.0000.01114.16
5.6.20.0070.00714.41
5.6.10.0000.01014.18
5.6.00.0030.00913.96

preferences:
57.57 ms | 400 KiB | 5 Q