3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = $_GET['url']; header('Content-Type: application/json'); $JSON = file_get_contents($url); // echo the JSON (you can echo this to JavaScript to use it there) echo json_encode($JSON); ?>

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.0060.00918.41
8.3.50.0090.00621.88
8.3.40.0100.01018.67
8.3.30.0140.00018.72
8.3.20.0080.00018.77
8.3.10.0070.00021.09
8.3.00.0040.00419.68
8.2.180.0120.00316.75
8.2.170.0110.00722.96
8.2.160.0070.00720.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0030.00621.10
8.2.110.0070.00320.38
8.2.100.0080.00417.84
8.2.90.0070.00019.31
8.2.80.0060.00617.97
8.2.70.0030.00617.63
8.2.60.0080.00018.16
8.2.50.0030.00518.07
8.2.40.0000.00718.34
8.2.30.0040.00421.28
8.2.20.0030.00517.68
8.2.10.0000.00717.77
8.2.00.0040.00417.79
8.1.280.0190.00825.92
8.1.270.0040.00423.99
8.1.260.0090.00626.35
8.1.250.0000.00728.09
8.1.240.0080.00420.76
8.1.230.0080.00320.91
8.1.220.0060.00318.77
8.1.210.0060.00319.04
8.1.200.0040.00417.47
8.1.190.0040.00417.54
8.1.180.0000.00818.10
8.1.170.0000.00820.37
8.1.160.0070.00018.79
8.1.150.0040.00418.63
8.1.140.0070.00017.35
8.1.130.0040.00417.75
8.1.120.0030.00317.35
8.1.110.0040.00417.47
8.1.100.0000.00717.36
8.1.90.0040.00417.37
8.1.80.0070.00017.46
8.1.70.0030.00317.42
8.1.60.0000.00817.51
8.1.50.0000.00717.49
8.1.40.0080.00017.41
8.1.30.0080.00017.54
8.1.20.0050.00317.53
8.1.10.0030.00517.43
8.1.00.0000.00917.49
8.0.300.0000.00820.16
8.0.290.0050.00317.18
8.0.280.0050.00218.41
8.0.270.0030.00317.35
8.0.260.0040.00416.93
8.0.250.0070.00017.09
8.0.240.0060.00316.94
8.0.230.0000.00717.06
8.0.220.0030.00617.02
8.0.210.0030.00316.98
8.0.200.0030.00317.04
8.0.190.0060.00317.03
8.0.180.0000.00817.02
8.0.170.0070.00017.01
8.0.160.0000.00816.90
8.0.150.0070.00016.92
8.0.140.0030.00616.96
8.0.130.0030.00313.43
8.0.120.0000.00816.95
8.0.110.0040.00417.03
8.0.100.0000.00716.98
8.0.90.0040.00416.91
8.0.80.0140.00717.00
8.0.70.0060.00317.00
8.0.60.0040.00416.82
8.0.50.0050.00217.11
8.0.30.0140.00517.12
8.0.20.0090.00917.40
8.0.10.0050.00316.93
8.0.00.0070.01016.68
7.4.330.0000.00414.95
7.4.320.0030.00316.58
7.4.300.0000.00716.55
7.4.290.0030.00316.48
7.4.280.0000.00716.50
7.4.270.0000.00816.56
7.4.260.0030.00313.22
7.4.250.0000.00716.46
7.4.240.0000.00716.47
7.4.230.0070.00016.66
7.4.220.0060.01016.59
7.4.210.0110.00616.58
7.4.200.0070.00016.52
7.4.190.0000.00716.71
7.4.160.0120.00416.68
7.4.150.0120.00617.40
7.4.140.0110.00617.86
7.4.130.0130.00716.51
7.4.120.0080.01316.64
7.4.110.0030.01416.35
7.4.100.0110.00516.58
7.4.90.0070.01016.53
7.4.80.0100.01019.39
7.4.70.0130.00316.39
7.4.60.0130.00316.60
7.4.50.0040.00416.34
7.4.40.0030.00922.77
7.4.30.0140.00316.54
7.4.00.0070.00714.91
7.3.330.0000.00613.12
7.3.320.0060.00013.15
7.3.310.0030.00316.39
7.3.300.0030.00316.27
7.3.290.0030.01316.29
7.3.280.0040.01216.31
7.3.270.0140.00417.40
7.3.260.0130.00618.24
7.3.250.0050.01516.49
7.3.240.0070.01516.56
7.3.230.0120.01116.39
7.3.210.0140.00316.38
7.3.200.0100.01419.39
7.3.190.0060.01116.34
7.3.180.0150.00016.32
7.3.170.0090.01016.50
7.3.160.0070.00716.39
7.3.120.0000.01414.59
7.3.10.0120.00616.31
7.3.00.0060.00916.47
7.2.330.0090.00916.31
7.2.320.0180.00316.75
7.2.310.0100.01416.36
7.2.300.0030.01416.24
7.2.290.0090.00616.39
7.2.130.0110.00416.64
7.2.120.0070.01016.78
7.2.110.0110.00316.82
7.2.100.0060.00916.81
7.2.90.0050.00916.67
7.2.80.0040.01216.40
7.2.70.0120.00716.62
7.2.60.0090.01116.86
7.2.50.0100.01116.57
7.2.40.0070.01216.59
7.2.30.0040.01416.68
7.2.20.0040.01116.80
7.2.10.0090.00516.79
7.2.00.0050.01016.79
7.1.250.0100.00515.56
7.1.240.0100.00615.80
7.1.230.0070.00715.75
7.1.220.0030.00615.84
7.1.210.0090.00615.51
7.1.200.0070.00715.75
7.1.190.0080.00815.93
7.1.180.0060.00615.85
7.1.170.0040.01115.79
7.1.160.0090.00615.87
7.1.150.0090.00615.52
7.1.140.0030.01015.93
7.1.130.0030.01015.54
7.1.120.0030.01015.58
7.1.110.0040.01115.90
7.1.100.0030.01015.98
7.1.90.0090.00315.82
7.1.80.0100.00015.83
7.1.70.0050.00516.43
7.1.60.0060.00817.58
7.1.50.0070.00616.14
7.1.40.0000.00915.83
7.1.30.0080.00015.88
7.1.20.0030.00915.84
7.1.10.0080.00315.87
7.1.00.0050.03519.15
7.0.330.0080.00015.19
7.0.320.0120.00315.24
7.0.310.0100.00015.21
7.0.300.0000.00815.29
7.0.290.0040.00715.38
7.0.280.0060.01015.25
7.0.270.0000.01414.98
7.0.260.0100.00315.30
7.0.250.0160.00015.30
7.0.240.0030.01015.25
7.0.230.0070.00315.32
7.0.220.0070.00715.39
7.0.210.0030.00715.50
7.0.200.0070.00415.98
7.0.190.0100.00015.32
7.0.180.0050.00515.25
7.0.170.0030.00915.18
7.0.160.0070.00715.25
7.0.150.0040.00715.43
7.0.140.0030.04018.69
7.0.130.0060.00315.43
7.0.120.0090.00315.33
7.0.110.0070.00315.36
7.0.100.0100.00015.30
7.0.90.0150.02017.64
7.0.80.0050.02317.72
7.0.70.0000.02817.57
7.0.60.0000.02617.56
7.0.50.0100.02517.80
7.0.40.0000.02816.80
7.0.30.0080.02016.70
7.0.20.0070.01716.75
7.0.10.0020.03316.78
7.0.00.0070.02716.73
5.6.380.0060.01014.30
5.6.370.0090.01314.17
5.6.360.0200.00514.09
5.6.350.0160.00414.53
5.6.340.0140.00314.22
5.6.330.0120.00314.37
5.6.320.0120.00314.17
5.6.310.0080.00614.51
5.6.300.0000.01114.49
5.6.290.0030.01014.40
5.6.280.0070.03517.50
5.6.270.0040.00714.25
5.6.260.0040.00714.20
5.6.250.0090.00314.21
5.6.240.0090.03017.42
5.6.230.0060.02017.35
5.6.220.0100.02317.50
5.6.210.0040.02217.25
5.6.200.0050.02217.62
5.6.190.0010.02317.65
5.6.180.0020.02417.58
5.6.170.0040.03717.45
5.6.160.0030.04517.51
5.6.150.0120.03717.52
5.6.140.0050.02717.53
5.6.130.0030.03917.61
5.6.120.0050.04817.91
5.6.110.0050.04017.54
5.6.100.0030.04717.54
5.6.90.0110.04517.68
5.6.80.0030.04517.19
5.6.70.0030.03517.25
5.6.60.0080.04017.15
5.6.50.0070.04217.21
5.6.40.0160.03517.17
5.6.30.0080.04217.38
5.6.20.0080.04317.32
5.6.10.0100.02917.25
5.6.00.0100.03817.20
5.5.380.0020.02315.79
5.5.370.0050.01915.81
5.5.360.0010.02415.73
5.5.350.0000.02515.79
5.5.340.0030.02116.04
5.5.330.0050.02116.01
5.5.320.0070.02216.00
5.5.310.0070.02515.98
5.5.300.0060.02116.05
5.5.290.0020.03415.99
5.5.280.0030.03116.04
5.5.270.0090.04216.04
5.5.260.0030.05016.03
5.5.250.0230.03015.93
5.5.240.0080.03815.73
5.5.230.0020.04315.66
5.5.220.0080.04115.73
5.5.210.0080.03815.73
5.5.200.0060.03615.72
5.5.190.0060.04215.65
5.5.180.0070.02915.71
5.5.170.0040.00411.18
5.5.160.0090.04015.65
5.5.150.0050.02515.58
5.5.140.0030.02815.69
5.5.130.0050.02215.62
5.5.120.0070.02515.72
5.5.110.0050.03815.62
5.5.100.0110.03515.63
5.5.90.0050.02515.59
5.5.80.0110.02715.57
5.5.70.0120.02015.67
5.5.60.0070.03915.62
5.5.50.0050.02515.54
5.5.40.0050.04215.66
5.5.30.0070.03715.65
5.5.20.0090.01815.62
5.5.10.0080.04115.56
5.5.00.0040.04415.58
5.4.450.0050.04315.28
5.4.440.0070.04515.28
5.4.430.0120.03415.15
5.4.420.0120.03715.32
5.4.410.0020.04415.20
5.4.400.0050.04215.00
5.4.390.0050.02715.13
5.4.380.0080.04115.14
5.4.370.0040.02714.98
5.4.360.0050.04315.12
5.4.350.0070.03715.13
5.4.340.0070.02715.16
5.4.330.0060.00611.18
5.4.320.0090.03015.15
5.4.310.0100.03515.13
5.4.300.0070.03815.12
5.4.290.0080.03314.98
5.4.280.0030.02415.20
5.4.270.0030.04415.10
5.4.260.0080.02415.12
5.4.250.0100.03615.15
5.4.240.0100.03515.14
5.4.230.0070.02715.08
5.4.220.0150.03215.14
5.4.210.0030.02915.13
5.4.200.0070.02515.14
5.4.190.0110.03715.14
5.4.180.0090.02915.07
5.4.170.0070.02315.10
5.4.160.0070.03515.12
5.4.150.0060.03415.06
5.4.140.0030.03813.78
5.4.130.0120.02313.74
5.4.120.0050.03913.73
5.4.110.0070.04013.76
5.4.100.0060.03913.71
5.4.90.0020.04013.76
5.4.80.0110.03513.68
5.4.70.0050.03813.71
5.4.60.0020.02313.70
5.4.50.0110.03213.79
5.4.40.0030.03313.73
5.4.30.0040.03913.74
5.4.20.0110.03213.73
5.4.10.0030.02313.74
5.4.00.0080.03713.42
5.3.290.0080.03012.91
5.3.280.0020.02512.87
5.3.270.0070.03712.81
5.3.260.0070.01812.87
5.3.250.0040.04412.86
5.3.240.0030.04012.87
5.3.230.0090.03512.87
5.3.220.0060.03512.79
5.3.210.0050.02112.80
5.3.200.0050.02812.87
5.3.190.0070.03812.82
5.3.180.0040.04212.85
5.3.170.0030.04312.85
5.3.160.0070.03212.79
5.3.150.0050.02412.82
5.3.140.0110.03612.84
5.3.130.0130.03512.84
5.3.120.0030.04612.77
5.3.110.0100.02312.85
5.3.100.0060.04012.60
5.3.90.0040.04412.57
5.3.80.0030.04512.52
5.3.70.0070.03512.60
5.3.60.0100.01812.59
5.3.50.0020.02612.54
5.3.40.0050.04412.53
5.3.30.0040.03712.53
5.3.20.0040.04112.40
5.3.10.0020.02912.43
5.3.00.0150.02812.40
5.2.170.0030.02211.16
5.2.160.0040.02011.07
5.2.150.0040.03311.18
5.2.140.0020.03611.19
5.2.130.0060.02611.13
5.2.120.0080.03011.17
5.2.110.0040.03011.07
5.2.100.0050.03011.16
5.2.90.0040.03511.12
5.2.80.0060.02511.09
5.2.70.0060.02711.15
5.2.60.0020.02211.13
5.2.50.0030.01911.07
5.2.40.0040.02411.01
5.2.30.0060.03110.99
5.2.20.0050.02811.01
5.2.10.0050.02710.98
5.2.00.0050.03310.95
5.1.60.0040.02710.59
5.1.50.0080.02510.58
5.1.40.0060.02510.59
5.1.30.0020.02310.78
5.1.20.0040.02910.80
5.1.10.0050.02810.62
5.1.00.0030.02810.56
5.0.50.0030.0259.78
5.0.40.0030.0209.84
5.0.30.0010.0349.71
5.0.20.0000.0179.73
5.0.10.0050.0219.71
5.0.00.0030.0339.66
4.4.90.0000.0139.43
4.4.80.0020.0169.43
4.4.70.0000.0179.43
4.4.60.0030.0169.43
4.4.50.0030.0209.43
4.4.40.0010.0309.43
4.4.30.0040.0179.43
4.4.20.0030.0189.43
4.4.10.0030.0119.43
4.4.00.0020.0299.43
4.3.110.0030.0189.43
4.3.100.0030.0189.43
4.3.90.0020.0179.43
4.3.80.0010.0319.43
4.3.70.0020.0189.43
4.3.60.0030.0149.43
4.3.50.0010.0209.43
4.3.40.0020.0289.43
4.3.30.0000.0209.43
4.3.20.0030.0199.43
4.3.10.0020.0209.43
4.3.00.0030.0189.43

preferences:
56.27 ms | 401 KiB | 5 Q