3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_contents() { file_get_contents("http://example.com"); var_dump($http_response_header); } get_contents(); var_dump($http_response_header);

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.0090.00618.92
8.3.30.0070.00719.17
8.3.20.0000.00820.72
8.3.10.0030.00522.27
8.3.00.0040.00422.71
8.2.170.0090.00922.96
8.2.160.0170.00320.53
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00017.88
8.2.110.0070.00322.23
8.2.100.0080.00417.91
8.2.90.0050.00317.91
8.2.80.0040.00419.24
8.2.70.0000.00917.88
8.2.60.0040.00417.75
8.2.50.0040.00419.53
8.2.40.0000.00919.34
8.2.30.0000.00819.19
8.2.20.0000.00817.78
8.2.10.0040.00419.66
8.2.00.0050.00217.76
8.1.270.0030.00522.16
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0060.00322.50
8.1.230.0060.00621.17
8.1.220.0080.00017.79
8.1.210.0050.00518.77
8.1.200.0040.00417.38
8.1.190.0000.00917.11
8.1.180.0050.00319.23
8.1.170.0000.00918.77
8.1.160.0040.00419.20
8.1.150.0000.00818.64
8.1.140.0050.00217.43
8.1.130.0070.00017.95
8.1.120.0000.00717.59
8.1.110.0040.00417.41
8.1.100.0000.00817.34
8.1.90.0040.00417.41
8.1.80.0000.00717.44
8.1.70.0030.00317.48
8.1.60.0000.00817.64
8.1.50.0000.00817.59
8.1.40.0030.00517.57
8.1.30.0000.00817.66
8.1.20.0040.00417.75
8.1.10.0040.00417.61
8.1.00.0000.00817.46
8.0.300.0000.00920.22
8.0.290.0030.00516.88
8.0.280.0070.00018.57
8.0.270.0070.00018.19
8.0.260.0060.00016.92
8.0.250.0030.00316.98
8.0.240.0050.00217.16
8.0.230.0000.00917.07
8.0.220.0030.00317.00
8.0.210.0030.00316.99
8.0.200.0060.00017.09
8.0.190.0060.00317.08
8.0.180.0040.00416.92
8.0.170.0000.00817.03
8.0.160.0040.00417.03
8.0.150.0070.00016.95
8.0.140.0040.00416.85
8.0.130.0000.00613.54
8.0.120.0000.00817.07
8.0.110.0080.00017.11
8.0.100.0000.00816.93
8.0.90.0040.00417.14
8.0.80.0070.01017.11
8.0.70.0080.00017.02
8.0.60.0030.00617.13
8.0.50.0030.00517.07
8.0.30.0110.00917.23
8.0.20.0120.00817.40
8.0.10.0050.00317.15
8.0.00.0120.00816.97
7.4.330.0050.00015.29
7.4.320.0000.00616.60
7.4.300.0000.00716.56
7.4.290.0030.00316.76
7.4.280.0000.00716.55
7.4.270.0000.00716.59
7.4.260.0040.00416.55
7.4.250.0030.00516.54
7.4.240.0030.00616.73
7.4.230.0040.00416.57
7.4.220.0120.00616.86
7.4.210.0060.01016.68
7.4.200.0000.00716.67
7.4.190.0070.00016.71
7.4.160.0090.01216.81
7.4.150.0170.00317.40
7.4.140.0100.01017.86
7.4.130.0130.00816.62
7.4.120.0120.01016.72
7.4.110.0150.00616.53
7.4.100.0070.01516.55
7.4.90.0100.00916.56
7.4.80.0080.01218.02
7.4.70.0070.01116.52
7.4.60.0100.00816.48
7.4.50.0090.00616.46
7.4.40.0080.01319.71
7.4.30.0090.01016.53
7.4.20.0240.00316.43
7.4.10.0190.00916.51
7.4.00.0080.01016.01
7.3.330.0030.00313.56
7.3.320.0060.00013.45
7.3.310.0000.00716.61
7.3.300.0050.00216.57
7.3.290.0110.00616.64
7.3.280.0120.00416.60
7.3.270.0110.00817.40
7.3.260.0140.00316.56
7.3.250.0110.00916.54
7.3.240.0130.00616.54
7.3.230.0120.01116.43
7.3.220.0120.00916.53
7.3.210.0110.00716.47
7.3.200.0150.00717.99
7.3.190.0100.01116.58
7.3.180.0080.01416.64
7.3.170.0110.01116.56
7.3.160.0160.00716.55
7.3.150.0160.00816.53
7.3.140.0120.01216.63
7.3.130.0200.00016.65
7.3.120.0110.00915.71
7.3.110.0110.00915.91
7.3.100.0120.00915.72
7.3.90.0160.00915.58
7.3.80.0110.00815.51
7.3.70.0150.00515.71
7.3.60.0130.00615.52
7.3.50.0080.01315.50
7.3.40.0120.00515.53
7.3.30.0110.01015.62
7.3.20.0120.00815.72
7.3.10.0120.00816.04
7.3.00.0100.00616.00
7.2.340.0260.00616.70
7.2.330.0170.00916.74
7.2.320.0170.00916.65
7.2.310.0160.01116.69
7.2.300.0160.00916.63
7.2.290.0170.00716.63
7.2.280.0190.01416.67
7.2.270.0230.01416.64
7.2.260.0170.01316.60
7.2.250.0150.01816.60
7.2.240.0230.00415.58
7.2.230.0180.00915.60
7.2.220.0120.01615.97
7.2.210.0180.00615.83
7.2.200.0120.01215.92
7.2.190.0160.00715.81
7.2.180.0210.00415.80
7.2.170.0170.00615.84
7.2.160.0120.01315.67
7.2.150.0240.00515.89
7.2.140.0180.01115.87
7.2.130.0130.00516.31
7.2.120.0100.00816.11
7.2.110.0100.00716.27
7.2.100.0140.00316.32
7.2.90.0080.00816.24
7.2.80.0120.00716.32
7.2.70.0080.00916.22
7.2.60.0100.00616.34
7.2.50.0110.00916.39
7.2.40.0110.00716.29
7.2.30.0120.00916.16
7.2.20.0100.00716.75
7.2.10.0130.00616.64
7.2.00.0090.00717.17
7.1.330.0200.00614.94
7.1.320.0180.00614.88
7.1.310.0150.01014.98
7.1.300.0150.00715.02
7.1.290.0140.00814.93
7.1.280.0360.00514.93
7.1.270.0220.00714.77
7.1.260.0200.00814.97
7.1.250.0090.00715.27
7.1.240.0140.00715.00
7.1.230.0160.00715.15
7.1.220.0140.00615.08
7.1.210.0130.01015.13
7.1.200.0130.00615.37
7.1.190.0130.00715.13
7.1.180.0110.01015.04
7.1.170.0290.01015.26
7.1.160.0160.00815.29
7.1.150.0110.01015.22
7.1.140.0100.00915.75
7.1.130.0150.00715.60
7.1.120.0100.00815.70
7.1.110.0140.00515.61
7.1.100.0110.00716.45
7.1.90.0110.00915.80
7.1.80.0130.00615.72
7.1.70.0100.00816.32
7.1.60.0120.00716.87
7.1.50.0100.01216.00
7.1.40.0150.00515.75
7.1.30.0130.00815.70
7.1.20.0190.00715.77
7.1.10.0160.00915.87
7.1.00.0110.02317.42
7.0.330.0170.00314.75
7.0.320.0090.01114.71
7.0.310.0160.00314.87
7.0.300.0150.00514.55
7.0.290.0110.00614.52
7.0.280.0170.00414.80
7.0.270.0110.01015.45
7.0.260.0120.00815.33
7.0.250.0120.00615.13
7.0.240.0100.00915.48
7.0.230.0210.00315.24
7.0.220.0130.00615.20
7.0.210.0130.00815.47
7.0.200.0120.00715.64
7.0.190.0180.00315.40
7.0.180.0110.00915.25
7.0.170.0090.01315.41
7.0.160.0140.00715.40
7.0.150.0100.00815.29
7.0.140.0090.02217.09
7.0.130.0100.00915.38
7.0.120.0140.01015.40
7.0.110.0100.00915.28
7.0.100.0220.01516.52
7.0.90.0130.01516.49
7.0.80.0140.01316.59
7.0.70.0110.01816.64
7.0.60.0140.02116.68
7.0.50.0190.02216.76
7.0.40.0100.02616.26
7.0.30.0120.01816.19
7.0.20.0150.02216.20
7.0.10.0110.02016.13
7.0.00.0110.03016.23
5.6.400.0150.00715.14
5.6.390.0170.00915.27
5.6.380.0110.01014.54
5.6.370.0150.00714.93
5.6.360.0080.01315.02
5.6.350.0140.00814.76
5.6.340.0150.00614.89
5.6.330.0110.01114.91
5.6.320.0130.01014.97
5.6.310.0120.00814.76
5.6.300.0140.00814.70
5.6.290.0140.00714.76
5.6.280.0120.02316.57
5.6.270.0150.00914.83
5.6.260.0180.00714.96
5.6.250.0160.01516.55
5.6.240.0130.01616.37
5.6.230.0150.02416.37
5.6.220.0140.01616.40
5.6.210.0130.01616.43
5.6.200.0160.02416.41
5.6.190.0110.02816.47
5.6.180.0080.02416.33
5.6.170.0140.02916.42
5.6.160.0130.02416.38
5.6.150.0110.02816.53
5.6.140.0130.03016.47
5.6.130.0140.02416.47
5.6.120.0130.02616.52
5.6.110.0140.02616.38
5.6.100.0150.02216.49
5.6.90.0110.02916.29
5.6.80.0110.02616.10
5.6.70.0130.02616.16
5.6.60.0120.02816.18
5.6.50.0140.02516.18
5.6.40.0150.02316.16
5.6.30.0100.02816.14
5.6.20.0100.02716.20
5.6.10.0140.02716.29
5.6.00.0140.02116.22
5.5.380.0150.01215.46
5.5.370.0140.01815.61
5.5.360.0140.01915.45
5.5.350.0100.01715.46
5.5.340.0090.02415.47
5.5.330.0140.01915.53
5.5.320.0100.03315.59
5.5.310.0150.02415.56
5.5.300.0060.03115.56
5.5.290.0120.02715.63
5.5.280.0140.02715.58
5.5.270.0140.02515.58
5.5.260.0170.02215.51
5.5.250.0110.02815.51
5.5.240.0120.02315.42
5.5.230.0130.02415.37
5.5.220.0100.02615.47
5.5.210.0130.02715.24
5.5.200.0100.02815.37
5.5.190.0110.02015.20
5.5.180.0100.02515.37
5.5.170.0140.00713.68
5.5.160.0150.02215.40
5.5.150.0100.02615.36
5.5.140.0140.02415.25
5.5.130.0160.02315.54
5.5.120.0110.02715.39
5.5.110.0130.02615.31
5.5.100.0120.02415.34
5.5.90.0130.02215.41
5.5.80.0140.01715.41
5.5.70.0130.02315.34
5.5.60.0120.02115.40
5.5.50.0170.02215.48
5.5.40.0140.02515.27
5.5.30.0130.02515.34
5.5.20.0090.02815.41
5.5.10.0090.02715.34
5.5.00.0100.02615.27
5.4.450.0090.02713.69
5.4.440.0100.02313.68
5.4.430.0130.01813.69
5.4.420.0070.02713.65
5.4.410.0100.02513.57
5.4.400.0110.02013.58
5.4.390.0100.02413.41
5.4.380.0100.01513.60
5.4.370.0120.02013.54
5.4.360.0090.02413.43
5.4.350.0110.02213.62
5.4.340.0120.01513.50
5.4.330.0040.01211.63
5.4.320.0110.01613.59
5.4.310.0080.02713.54
5.4.300.0100.02213.50
5.4.290.0110.02113.58
5.4.280.0080.02613.47
5.4.270.0110.01713.57
5.4.260.0090.02713.42
5.4.250.0090.02513.52
5.4.240.0130.02113.42
5.4.230.0050.02713.59
5.4.220.0110.02213.54
5.4.210.0110.02313.72
5.4.200.0080.02113.54
5.4.190.0110.02313.53
5.4.180.0110.02413.41
5.4.170.0100.01513.63
5.4.160.0090.02713.55
5.4.150.0170.01813.61
5.4.140.0070.02312.85
5.4.130.0110.02112.86
5.4.120.0120.02112.96
5.4.110.0080.02512.93
5.4.100.0100.02212.86
5.4.90.0090.02512.78
5.4.80.0120.01712.92
5.4.70.0100.02012.91
5.4.60.0100.02112.85
5.4.50.0120.01712.91
5.4.40.0090.02312.84
5.4.30.0110.02112.95
5.4.20.0060.02412.81
5.4.10.0090.02212.92
5.4.00.0070.02312.60
5.3.290.0120.01912.41
5.3.280.0100.02212.32
5.3.270.0090.01612.32
5.3.260.0110.02312.37
5.3.250.0060.02212.37
5.3.240.0100.02312.35
5.3.230.0100.01812.36
5.3.220.0100.02412.32
5.3.210.0130.01912.33
5.3.200.0090.02212.31
5.3.190.0080.01912.34
5.3.180.0090.01812.33
5.3.170.0090.02012.41
5.3.160.0060.01912.37
5.3.150.0090.02212.32
5.3.140.0070.01812.34
5.3.130.0060.02212.34
5.3.120.0040.02012.34
5.3.110.0060.01612.37
5.3.100.0060.02512.16
5.3.90.0100.01612.21
5.3.80.0090.02012.16
5.3.70.0100.01712.15
5.3.60.0060.02412.20
5.3.50.0050.02212.20
5.3.40.0070.02312.17
5.3.30.0060.02312.14
5.3.20.0050.02112.12
5.3.10.0070.01712.08
5.3.00.0060.02112.05

preferences:
48.49 ms | 400 KiB | 5 Q