3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fwrite_with_retry($sock, &$data) { $bytes_to_write = strlen($data); $bytes_written = 0; while ( $bytes_written < $bytes_to_write ) { if ( $bytes_written == 0 ) { $rv = fwrite($sock, $data); } else { $rv = fwrite($sock, substr($data, $bytes_written)); } if ( $rv === false || $rv == 0 ) return( $bytes_written == 0 ? false : $bytes_written ); $bytes_written += $rv; } return $bytes_written; } $fp = fsockopen("3v4l.org", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { $out = "GET / HTTP/1.1\r\n"; $out .= "Host: 3v4l.org\r\n"; $out .= "Connection: Close\r\n\r\n"; fwrite_with_retry($fp, $out); while (!feof($fp)) { echo fgets($fp, 128); } fclose($fp); }

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.0150.00618.75
8.3.50.0130.01021.93
8.3.40.0120.00919.04
8.3.30.0140.00019.17
8.3.20.0000.00720.54
8.3.10.0030.00522.18
8.3.00.0080.00019.81
8.2.180.0100.00716.75
8.2.170.0110.00722.96
8.2.160.0040.01120.47
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0050.00321.22
8.2.110.0070.00322.34
8.2.100.0060.00621.37
8.2.90.0050.00319.34
8.2.80.0030.00517.97
8.2.70.0050.00517.88
8.2.60.0030.00718.16
8.2.50.0050.00318.07
8.2.40.0060.00320.20
8.2.30.0030.00618.27
8.2.20.0050.00317.77
8.2.10.0030.00618.21
8.2.00.0060.00317.96
8.1.280.0140.00325.92
8.1.270.0060.00324.09
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00624.09
8.1.230.0110.00019.41
8.1.220.0030.00517.89
8.1.210.0030.00518.77
8.1.200.0030.00617.48
8.1.190.0040.00417.38
8.1.180.0040.00418.10
8.1.170.0040.00418.67
8.1.160.0050.00222.24
8.1.150.0040.00419.14
8.1.140.0040.00417.62
8.1.130.0030.00318.08
8.1.120.0040.00417.61
8.1.110.0040.00417.54
8.1.100.0040.00417.65
8.1.90.0000.01017.52
8.1.80.0000.00717.56
8.1.70.0000.00717.55
8.1.60.0040.00417.66
8.1.50.0030.00517.56
8.1.40.0050.00317.69
8.1.30.0040.00417.71
8.1.20.0000.00917.77
8.1.10.0000.00717.62
8.1.00.0060.00317.49
8.0.300.0040.00418.77
8.0.290.0080.00016.88
8.0.280.0030.00518.71
8.0.270.0000.00717.48
8.0.260.0030.00317.46
8.0.250.0000.00717.14
8.0.240.0000.00717.14
8.0.230.0000.00717.16
8.0.220.0070.00017.06
8.0.210.0050.00217.06
8.0.200.0050.00217.16
8.0.190.0000.00717.14
8.0.180.0040.00417.13
8.0.170.0080.00017.09
8.0.160.0040.00417.10
8.0.150.0040.00417.04
8.0.140.0040.00416.89
8.0.130.0060.00013.51
8.0.120.0060.00317.16
8.0.110.0030.00517.20
8.0.100.0030.00517.14
8.0.90.0040.00417.11
8.0.80.0100.01017.21
8.0.70.0000.00817.04
8.0.60.0040.00417.06
8.0.50.0040.00417.01
8.0.30.0140.00817.30
8.0.20.0130.00617.40
8.0.10.0000.00817.34
8.0.00.0080.01116.92
7.4.330.0020.00515.00
7.4.320.0000.00716.65
7.4.300.0040.00416.63
7.4.290.0070.00016.64
7.4.280.0040.00416.74
7.4.270.0000.00816.76
7.4.260.0070.00016.53
7.4.250.0000.00816.73
7.4.240.0040.00416.79
7.4.230.0040.00416.78
7.4.220.0030.01916.72
7.4.210.0000.02116.84
7.4.200.0000.00816.75
7.4.160.0130.00316.73
7.4.150.0170.01017.40
7.4.140.0120.00717.86
7.4.130.0100.01116.74
7.4.120.0070.01416.73
7.4.110.0200.00716.61
7.4.100.0070.01416.82
7.4.90.0090.00916.62
7.4.80.0150.00319.39
7.4.70.0120.00616.70
7.4.60.0090.00916.70
7.4.50.0080.00016.82
7.4.40.0140.00916.68
7.4.30.0100.00716.78
7.4.00.0100.00915.15
7.3.330.0000.00613.46
7.3.320.0000.00513.42
7.3.310.0070.00016.50
7.3.300.0000.00716.48
7.3.290.0090.00616.50
7.3.280.0120.00616.56
7.3.270.0160.00317.40
7.3.260.0100.00916.75
7.3.250.0090.00916.63
7.3.240.0180.00016.80
7.3.230.0170.00016.61
7.3.210.0040.01516.47
7.3.200.0060.01219.39
7.3.190.0110.00616.63
7.3.180.0100.00716.63
7.3.170.0110.00516.54
7.3.160.0090.00816.69
7.3.120.0090.00915.13
7.3.110.0050.01115.24
7.3.100.0140.00815.10
7.3.90.0000.01314.86
7.3.80.0040.01515.08
7.3.70.0120.00315.04
7.3.60.0030.01315.03
7.3.50.0090.00615.08
7.3.40.0070.00715.11
7.3.30.0060.01015.07
7.3.20.0000.01116.86
7.3.10.0070.00716.97
7.3.00.0000.01416.89
7.2.330.0090.01616.88
7.2.320.0130.01016.86
7.2.310.0140.00416.87
7.2.300.0120.00616.86
7.2.290.0030.01316.84
7.2.250.0080.01115.25
7.2.240.0150.00615.23
7.2.230.0030.01315.10
7.2.220.0030.01215.34
7.2.210.0040.01114.82
7.2.200.0030.01015.05
7.2.190.0110.00415.03
7.2.180.0070.01114.97
7.2.170.0130.00015.18
7.2.160.0160.00015.25
7.2.150.0070.01017.14
7.2.140.0060.01316.90
7.2.130.0110.00316.91
7.2.120.0030.01317.11
7.2.110.0000.01217.11
7.2.100.0060.01017.08
7.2.90.0060.00617.25
7.2.80.0000.01416.79
7.2.70.0070.00717.04
7.2.60.0020.01417.13
7.2.50.0030.00717.09
7.2.40.0130.00016.85
7.2.30.0060.01217.18
7.2.20.0030.00617.09
7.2.10.0000.01417.14
7.2.00.0050.00818.29
7.1.330.0150.00416.08
7.1.320.0050.00515.77
7.1.310.0110.00715.82
7.1.300.0100.00716.14
7.1.290.0000.01116.06
7.1.280.0070.00715.79
7.1.270.0040.01115.72
7.1.260.0030.01416.20
7.1.250.0030.01016.02
7.1.240.0080.00815.67
7.1.230.0140.00315.91
7.1.220.0070.00715.80
7.1.210.0030.01016.00
7.1.200.0110.00416.04
7.1.190.0030.00915.87
7.1.180.0090.00615.93
7.1.170.0050.00515.82
7.1.160.0070.01015.92
7.1.150.0070.01016.07
7.1.140.0000.01115.77
7.1.130.0060.00315.90
7.1.120.0120.00315.88
7.1.110.0070.01016.04
7.1.100.0060.00917.17
7.1.90.0040.01116.01
7.1.80.0030.01316.02
7.1.70.0030.01016.51
7.1.60.0100.00617.59
7.1.50.0050.00616.53
7.1.40.0030.01015.99
7.1.30.0030.00616.11
7.1.20.0040.00716.02
7.1.10.0080.00315.87
7.1.00.0070.03819.26
7.0.330.0070.00715.58
7.0.320.0100.00715.33
7.0.310.0090.00615.51
7.0.300.0030.00815.57
7.0.290.0060.00615.64
7.0.280.0000.01515.77
7.0.270.0030.01015.55
7.0.260.0000.01115.38
7.0.250.0070.00315.63
7.0.240.0030.00615.68
7.0.230.0030.01015.66
7.0.220.0070.01115.82
7.0.210.0000.01015.72
7.0.200.0020.00916.34
7.0.190.0040.00415.29
7.0.180.0090.00315.64
7.0.170.0040.01115.83
7.0.160.0050.00515.68
7.0.150.0090.00315.65
7.0.140.0110.03518.81
7.0.130.0030.00915.80
7.0.120.0000.00915.55
7.0.110.0040.01215.77
7.0.100.0040.00715.66
7.0.90.0100.00315.42
7.0.80.0000.01415.71
7.0.70.0090.00615.47
7.0.60.0020.03218.06
7.0.50.0090.03516.87
7.0.40.0050.03817.15
7.0.30.0150.02217.05
7.0.20.0100.02617.13
7.0.10.0100.03716.99
7.0.00.0070.02917.02
5.6.400.0060.00314.71
5.6.390.0040.00814.86
5.6.380.0040.01214.57
5.6.370.0030.01414.80
5.6.360.0110.00414.79
5.6.350.0150.00314.18
5.6.340.0060.01214.81
5.6.330.0080.00814.55
5.6.320.0070.00714.38
5.6.310.0030.00614.78
5.6.300.0040.01114.47
5.6.290.0040.00714.60
5.6.280.0020.04117.81
5.6.270.0110.00314.79
5.6.260.0060.00314.54
5.6.250.0070.00714.79
5.6.240.0040.00714.55
5.6.230.0070.00714.60
5.6.220.0090.00614.45
5.6.210.0110.04017.71
5.6.200.0050.04716.54
5.6.190.0040.02617.85
5.6.180.0220.04117.77
5.6.170.0090.03817.71
5.6.160.0060.02317.54
5.6.150.0130.03816.47
5.6.140.0030.02616.65
5.6.130.0000.02916.44
5.6.120.0110.04018.02
5.6.110.0100.04417.82
5.6.100.0100.04318.03
5.6.90.0070.05017.94
5.6.80.0030.04017.71
5.6.70.0110.00314.36
5.6.60.0100.00614.64
5.6.50.0030.00914.52
5.6.40.0060.00914.69
5.6.30.0110.00814.30
5.6.20.0030.00914.32
5.6.10.0110.00314.35
5.6.00.0130.00314.49
5.5.380.0060.00314.67
5.5.370.0000.00914.19
5.5.360.0070.00714.43
5.5.350.0080.04317.80
5.5.340.0080.03616.22
5.5.330.0070.04417.43
5.5.320.0220.03217.37
5.5.310.0200.03817.31
5.5.300.0090.03416.33
5.5.290.0050.04516.40
5.5.280.0050.04717.86
5.5.270.0020.03017.72
5.5.260.0090.04417.86
5.5.250.0050.04317.57
5.5.240.0160.03817.39
5.5.230.0060.01214.17
5.5.220.0100.00314.24
5.5.210.0070.00314.63
5.5.200.0120.00614.55
5.5.190.0070.01114.22
5.5.180.0080.00314.32
5.5.170.0030.00914.21
5.5.160.0100.00314.27
5.5.150.0030.00614.36
5.5.140.0060.00314.51
5.5.130.0060.00614.21
5.5.120.0130.00014.64
5.5.110.0070.00714.47
5.5.100.0060.00614.46
5.5.90.0030.00914.59
5.5.80.0070.00714.29
5.5.70.0040.01214.48
5.5.60.0040.00814.28
5.5.50.0030.01014.36
5.5.40.0100.00313.87
5.5.30.0070.00714.18
5.5.20.0060.01014.52
5.5.10.0040.00914.68
5.5.00.0070.00314.57
5.4.450.0120.02416.63
5.4.440.0210.02516.59
5.4.430.0120.02516.66
5.4.420.0150.02016.64
5.4.410.0170.02716.59
5.4.400.0190.01716.46
5.4.390.0080.02516.42
5.4.380.0200.02616.37
5.4.370.0150.02816.24
5.4.360.0160.03316.35
5.4.350.0100.03716.31
5.4.340.0200.03016.21
5.4.330.0000.01113.55
5.4.320.0040.02013.12
5.4.310.0060.02713.12
5.4.300.0100.02513.12
5.4.290.0040.03013.12
5.4.280.0050.02513.07
5.4.270.0090.02213.07
5.4.260.0050.02713.07
5.4.250.0060.02313.07
5.4.240.0040.02513.07
5.4.230.0080.02213.06
5.4.220.0040.02413.06
5.4.210.0060.02013.06
5.4.200.0050.02213.07
5.4.190.0060.02013.06
5.4.180.0030.02313.06
5.4.170.0040.02113.07
5.4.160.0050.02313.06
5.4.150.0070.02213.06
5.4.140.0060.02112.90
5.4.130.0030.02412.90
5.4.120.0050.02112.88
5.4.110.0040.02112.88
5.4.100.0020.02512.88
5.4.90.0110.01612.88
5.4.80.0060.02012.88
5.4.70.0040.02312.88
5.4.60.0060.02012.87
5.4.50.0100.01812.88
5.4.40.0080.01612.87
5.4.30.0070.02012.87
5.4.20.0070.01812.87
5.4.10.0050.01812.86
5.4.00.0050.02112.61
5.3.290.0040.02813.22
5.3.280.0050.01913.19
5.3.270.0050.02013.19
5.3.260.0070.02113.20
5.3.250.0050.02413.20
5.3.240.0040.02213.19
5.3.230.0020.02513.19
5.3.220.0040.02413.18
5.3.210.0050.02013.17
5.3.200.0040.02213.17
5.3.190.0050.02213.17
5.3.180.0050.01913.17
5.3.170.0060.02213.18
5.3.160.0080.02013.17
5.3.150.0060.01913.17
5.3.140.0070.02013.17
5.3.130.0040.02313.17
5.3.120.0030.02213.16
5.3.110.0060.02113.16
5.3.100.0060.02112.91
5.3.90.0050.02112.90
5.3.80.0060.02012.90
5.3.70.0060.02012.90
5.3.60.0030.02112.89
5.3.50.0050.02012.86
5.3.40.0020.02612.86
5.3.30.0040.02112.84
5.3.20.0020.02412.73
5.3.10.0040.02212.72
5.3.00.0080.02012.71
5.2.170.0040.0319.37
5.2.160.0050.0289.36
5.2.150.0040.0329.37
5.2.140.0050.0309.36
5.2.130.0040.0299.32
5.2.120.0060.0299.32
5.2.110.0080.0259.34
5.2.100.0050.0289.33
5.2.90.0040.0309.33
5.2.80.0060.0299.32
5.2.70.0050.0309.33
5.2.60.0050.0299.28
5.2.50.0060.0289.25
5.2.40.0030.0309.22
5.2.30.0060.0289.20
5.2.20.0060.0279.19
5.2.10.0070.0269.09
5.2.00.0040.0308.95
5.1.60.0020.0278.23
5.1.50.0030.0278.23
5.1.40.0030.0268.20
5.1.30.0060.0248.56
5.1.20.0020.0288.57
5.1.10.0020.0298.30
5.1.00.0060.0248.31
5.0.50.0010.0246.79
5.0.40.0070.0256.65
5.0.30.0020.0356.46
5.0.20.0040.0206.40
5.0.10.0050.0196.38
5.0.00.0030.0316.38
4.4.90.0040.0144.79
4.4.80.0050.0134.77
4.4.70.0030.0154.77
4.4.60.0020.0174.77
4.4.50.0040.0154.79
4.4.40.0010.0284.78
4.4.30.0030.0164.78
4.4.20.0040.0154.84
4.4.10.0020.0164.85
4.4.00.0040.0254.80
4.3.110.0040.0144.71
4.3.100.0040.0144.70
4.3.90.0030.0154.67
4.3.80.0020.0264.66
4.3.70.0030.0154.66
4.3.60.0020.0164.66
4.3.50.0020.0164.66
4.3.40.0020.0254.64
4.3.30.0030.0153.45
4.3.20.0020.0163.43
4.3.10.0030.0153.21
4.3.00.0000.01715.27

preferences:
41.32 ms | 401 KiB | 5 Q