3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Downloading... "; $json = file_get_contents('http://m.vip.com/ajaxapi-classify.html?query=27967&limit=10000'); echo "[O.K.]\n"; $obj = json_decode($json); echo (float)$obj->data[0]->discount; if (file_exists($obj)) { header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="test.txt"'); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: ' . filesize($obj)); readfile($obj); exit; } ?>

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.0110.00716.88
8.3.50.0120.00616.51
8.3.40.0130.00919.17
8.3.30.0160.00319.23
8.3.20.0080.00020.59
8.3.10.0030.00522.14
8.3.00.0040.00424.04
8.2.180.0100.01017.00
8.2.170.0040.01122.96
8.2.160.0050.00920.42
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0030.00620.02
8.2.120.0070.00026.35
8.2.110.0060.00621.12
8.2.100.0070.00418.18
8.2.90.0040.00419.48
8.2.80.0050.00318.05
8.2.70.0000.00917.86
8.2.60.0000.00918.16
8.2.50.0000.00818.07
8.2.40.0030.00920.86
8.2.30.0070.00019.58
8.2.20.0040.00417.89
8.2.10.0040.00418.32
8.2.00.0030.00618.26
8.1.280.0060.01325.92
8.1.270.0140.00424.11
8.1.260.0000.01128.09
8.1.250.0050.00228.09
8.1.240.0110.00722.78
8.1.230.0110.00019.35
8.1.220.0040.00417.91
8.1.210.0000.00818.77
8.1.200.0060.00617.47
8.1.190.0050.00317.35
8.1.180.0040.00718.10
8.1.170.0040.00418.77
8.1.160.0000.00720.94
8.1.150.0090.00319.02
8.1.140.0070.00017.50
8.1.130.0000.00717.87
8.1.120.0040.00417.50
8.1.110.0000.00717.53
8.1.100.0000.00717.63
8.1.90.0000.00917.43
8.1.80.0040.00417.48
8.1.70.0070.00017.56
8.1.60.0040.00417.60
8.1.50.0030.00617.61
8.1.40.0030.00617.64
8.1.30.0040.00417.76
8.1.20.0050.00217.76
8.1.10.0040.00417.68
8.1.00.0000.00717.70
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0000.00818.70
8.0.270.0040.00417.05
8.0.260.0080.00017.50
8.0.250.0030.00317.24
8.0.240.0000.00717.34
8.0.230.0000.00717.15
8.0.220.0030.00317.06
8.0.210.0000.00817.02
8.0.200.0000.00617.23
8.0.190.0080.00017.12
8.0.180.0000.00817.06
8.0.170.0080.00017.19
8.0.160.0000.00817.13
8.0.150.0030.00316.94
8.0.140.0040.00417.02
8.0.130.0030.00313.62
8.0.120.0030.00715.36
8.0.110.0050.00515.42
8.0.100.0040.00315.41
8.0.90.0100.00015.38
8.0.80.0080.00815.36
8.0.70.0060.00415.40
8.0.60.0060.00415.27
8.0.50.0030.00615.32
8.0.30.0110.00615.94
8.0.20.0070.01316.48
8.0.10.0080.00215.50
8.0.00.0100.00916.21
7.4.330.0030.00316.98
7.4.320.0050.00216.70
7.4.300.0040.00416.60
7.4.290.0040.00416.62
7.4.280.0080.00016.70
7.4.270.0080.00016.64
7.4.260.0040.00316.74
7.4.250.0050.00615.16
7.4.240.0020.00815.69
7.4.230.0090.00215.26
7.4.220.0120.00315.13
7.4.210.0070.00915.17
7.4.200.0050.00515.16
7.4.190.0090.00313.61
7.4.180.0030.00513.62
7.4.160.0120.00015.21
7.4.150.0060.01115.43
7.4.140.0070.00816.41
7.4.130.0130.00515.73
7.4.120.0110.00515.71
7.4.110.0110.00815.23
7.4.100.0080.00715.26
7.4.90.0090.00815.10
7.4.80.0120.00716.53
7.4.70.0110.00615.19
7.4.60.0050.00915.16
7.4.50.0090.00515.16
7.4.40.0100.00315.12
7.4.30.0090.00415.04
7.4.20.0090.00313.34
7.4.10.0080.00013.36
7.4.00.0070.00314.17
7.3.330.0030.00313.48
7.3.320.0060.00013.45
7.3.310.0050.00315.01
7.3.300.0040.00415.01
7.3.290.0040.01015.81
7.3.280.0070.00915.85
7.3.270.0070.00615.52
7.3.260.0140.00514.95
7.3.250.0100.00715.92
7.3.240.0090.00615.51
7.3.230.0120.00014.98
7.3.220.0050.00513.24
7.3.210.0050.00815.01
7.3.200.0090.00616.21
7.3.190.0060.00714.88
7.3.180.0090.00614.84
7.3.170.0070.00714.88
7.3.160.0140.00014.92
7.3.150.0060.00313.00
7.3.140.0090.00313.32
7.3.130.0040.00913.26
7.3.120.0120.00013.46
7.3.110.0080.00413.40
7.3.100.0050.00513.34
7.3.90.0100.00013.42
7.3.80.0050.00813.34
7.3.70.0100.00013.31
7.3.60.0070.00513.44
7.3.50.0070.00313.39
7.3.40.0030.00813.60
7.3.30.0070.00313.38
7.3.20.0110.00015.26
7.3.10.0080.00315.13
7.3.00.0080.00315.37
7.2.340.0100.00313.63
7.2.330.0070.00915.19
7.2.320.0100.00615.17
7.2.310.0070.00815.18
7.2.300.0100.00615.16
7.2.290.0110.00415.20
7.2.280.0130.00013.64
7.2.270.0130.00013.45
7.2.260.0090.00413.35
7.2.250.0040.00813.54
7.2.240.0080.00513.42
7.2.230.0090.00313.49
7.2.220.0100.00213.45
7.2.210.0120.00013.58
7.2.200.0080.00613.36
7.2.190.0120.00013.42
7.2.180.0130.00013.41
7.2.170.0130.00013.70
7.2.160.0120.00013.63
7.2.150.0130.00015.13
7.2.140.0040.00815.27
7.2.130.0130.00015.56
7.2.120.0120.00015.34
7.2.110.0130.00015.48
7.2.100.0080.00515.42
7.2.90.0100.00315.52
7.2.80.0080.00415.52
7.2.70.0130.00015.25
7.2.60.0070.00716.21
7.2.50.0100.00315.23
7.2.40.0090.00315.50
7.2.30.0110.00215.24
7.2.20.0130.00015.59
7.2.10.0130.00015.42
7.2.00.0050.00817.44
7.1.330.0090.00214.46
7.1.320.0000.01114.34
7.1.310.0000.01114.52
7.1.300.0090.00314.44
7.1.290.0130.00014.46
7.1.280.0040.00814.32
7.1.270.0110.00014.46
7.1.260.0040.00814.42
7.1.250.0060.00614.32
7.1.240.0090.00214.32
7.1.230.0060.00614.46
7.1.220.0080.00414.41
7.1.210.0090.00314.42
7.1.200.0130.00515.08
7.1.190.0100.00214.50
7.1.180.0130.00014.50
7.1.170.0060.00614.26
7.1.160.0110.00214.42
7.1.150.0040.00814.53
7.1.140.0130.00014.55
7.1.130.0060.00614.33
7.1.120.0040.00814.51
7.1.110.0100.00214.21
7.1.100.0070.00616.42
7.1.90.0040.00914.48
7.1.80.0120.00014.46
7.1.70.0060.00415.73
7.1.60.0070.01316.87
7.1.50.0110.00315.76
7.1.40.0100.00314.56
7.1.30.0060.00614.51
7.1.20.0080.00414.30
7.1.10.0060.00614.49
7.1.00.0080.03818.65
7.0.330.0000.01114.30
7.0.320.0110.00014.48
7.0.310.0090.00314.27
7.0.300.0120.00014.27
7.0.290.0120.00014.31
7.0.280.0040.00814.40
7.0.270.0060.00614.44
7.0.260.0060.00614.44
7.0.250.0100.00214.52
7.0.240.0120.00014.53
7.0.230.0120.00014.34
7.0.220.0080.00414.39
7.0.210.0120.00014.29
7.0.200.0060.00515.73
7.0.190.0130.00014.46
7.0.180.0090.00214.46
7.0.170.0050.00514.25
7.0.160.0090.00314.39
7.0.150.0060.00614.41
7.0.140.0120.00014.18
7.0.130.0110.00014.21
7.0.120.0060.00614.46
7.0.110.0000.01214.15
7.0.100.0110.00014.23
7.0.90.0110.00014.32
7.0.80.0090.00314.35
7.0.70.0110.00014.21
7.0.60.0120.02118.20
7.0.50.0090.01816.21
7.0.40.0060.04617.45
7.0.30.0160.01817.32
7.0.20.0220.04217.36
7.0.10.0080.04117.32
7.0.00.0070.02417.32
5.6.400.0000.01112.86
5.6.390.0070.00512.82
5.6.380.0090.00213.07
5.6.370.0060.00612.90
5.6.360.0040.00813.06
5.6.350.0060.00613.13
5.6.340.0090.00312.75
5.6.330.0060.00512.85
5.6.320.0040.00812.90
5.6.310.0090.00312.80
5.6.300.0060.00612.69
5.6.290.0080.00312.82
5.6.280.0040.03317.17
5.6.270.0070.00413.02
5.6.260.0040.00712.96
5.6.250.0110.00012.90
5.6.240.0040.00713.21
5.6.230.0090.00313.22
5.6.220.0040.00813.12
5.6.210.0090.03017.12
5.6.200.0180.03515.74
5.6.190.0030.02617.01
5.6.180.0190.03217.03
5.6.170.0190.02517.04
5.6.160.0030.02716.91
5.6.150.0090.04015.83
5.6.140.0080.03815.76
5.6.130.0070.02415.76
5.6.120.0110.04417.14
5.6.110.0090.03717.32
5.6.100.0070.04417.24
5.6.90.0090.04217.22
5.6.80.0090.01816.82
5.6.70.0070.00413.25
5.6.60.0080.00313.19
5.6.50.0110.00012.99
5.6.40.0050.00512.82
5.6.30.0070.00412.80
5.6.20.0070.00412.85
5.6.10.0050.00512.84
5.6.00.0110.00012.85
5.5.380.0070.00412.97
5.5.370.0050.00512.87
5.5.360.0120.00012.94
5.5.350.1490.02116.91
5.5.340.0060.04415.65
5.5.330.0100.01816.78
5.5.320.0340.03416.65
5.5.310.0200.03116.66
5.5.300.0060.02515.60
5.5.290.0100.03215.57
5.5.280.0050.02217.04
5.5.270.0080.04316.99
5.5.260.0100.03217.08
5.5.250.0060.03016.87
5.5.240.0150.03416.91
5.5.230.0030.00912.80
5.5.220.0040.00713.00
5.5.210.0070.00513.18
5.5.200.0040.00712.68
5.5.190.0090.00312.99
5.5.180.0000.01112.64
5.5.170.0090.00212.64
5.5.160.0110.00013.00
5.5.150.0060.00612.60
5.5.140.0110.00012.54
5.5.130.0110.00012.55
5.5.120.0000.01012.88
5.5.110.0090.00212.75
5.5.100.0060.00613.02
5.5.90.0120.00012.82
5.5.80.0110.00012.75
5.5.70.0090.00313.05
5.5.60.0110.00012.91
5.5.50.0100.00012.92
5.5.40.0110.00013.00
5.5.30.0060.00612.83
5.5.20.0070.00412.79
5.5.10.0000.01112.67
5.5.00.0110.00012.79

preferences:
83.66 ms | 401 KiB | 5 Q