3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('default_socket_timeout', -1); $fp = stream_socket_client("http://echo.websocket.org", $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { fwrite($fp, "GET / HTTP/1.0\r\nHost: www.example.com\r\nAccept: */*\r\n\r\n"); while (!feof($fp)) { echo fgets($fp, 1024); } 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.4.20.0030.00617.58
8.4.10.0110.01117.60
8.3.150.0150.00418.94
8.3.140.0040.00417.03
8.3.130.0060.00318.50
8.3.120.0130.00718.88
8.3.110.0090.00620.94
8.3.100.0000.00924.06
8.3.90.0110.00726.77
8.3.80.0060.00318.68
8.3.70.0150.00616.75
8.3.60.0070.01016.86
8.3.50.0150.00721.20
8.3.40.0110.00418.87
8.3.30.0110.00318.71
8.3.20.0000.00818.65
8.3.10.0000.00921.66
8.3.00.0050.00317.80
8.2.260.0050.00316.58
8.2.250.0120.00618.23
8.2.240.0060.00318.94
8.2.230.0000.00822.58
8.2.220.0040.00437.54
8.2.210.0000.01526.77
8.2.200.0070.00316.63
8.2.190.0140.00416.75
8.2.180.0070.01116.50
8.2.170.0070.00722.96
8.2.160.0090.00919.21
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00320.51
8.2.110.0050.00522.21
8.2.100.0110.00017.97
8.2.90.0040.00417.99
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0080.00018.03
8.2.50.0040.00418.10
8.2.40.0000.00822.34
8.2.30.0000.00820.52
8.2.20.0000.00917.63
8.2.10.0070.00018.07
8.2.00.0000.00718.07
8.1.310.0040.00418.48
8.1.300.0040.00717.70
8.1.290.0040.00430.84
8.1.280.0090.00625.92
8.1.270.0050.00323.92
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00423.83
8.1.230.0080.00320.93
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00817.22
8.1.190.0040.00417.36
8.1.180.0030.00618.10
8.1.170.0070.00019.02
8.1.160.0030.00619.03
8.1.150.0040.00418.91
8.1.140.0020.00519.70
8.1.130.0000.00817.67
8.1.120.0000.00717.51
8.1.110.0050.00317.40
8.1.100.0040.00417.38
8.1.90.0070.00417.44
8.1.80.0040.00417.37
8.1.70.0040.00417.36
8.1.60.0050.00317.65
8.1.50.0000.00817.50
8.1.40.0030.00517.53
8.1.30.0000.00817.68
8.1.20.0040.00417.73
8.1.10.0080.00017.52
8.1.00.0040.00417.54
8.0.300.0040.00419.95
8.0.290.0050.00316.63
8.0.280.0000.00818.37
8.0.270.0000.00717.27
8.0.260.0030.00317.18
8.0.250.0030.00317.04
8.0.240.0000.00717.03
8.0.230.0000.00817.02
8.0.220.0030.00516.98
8.0.210.0030.00316.96
8.0.200.0030.00317.03
8.0.190.0000.00717.07
8.0.180.0030.00716.89
8.0.170.0080.00016.96
8.0.160.0050.00316.98
8.0.150.0030.00616.91
8.0.140.0030.00616.94
8.0.130.0000.00513.33
8.0.120.0000.00716.76
8.0.110.0040.00416.89
8.0.100.0050.00217.03
8.0.90.0050.00316.88
8.0.80.0030.01416.92
8.0.70.0000.00816.81
8.0.60.0070.00016.95
8.0.50.0040.00416.82
8.0.30.0120.00617.08
8.0.20.0110.00817.40
8.0.10.0040.00417.11
8.0.00.0110.00716.87
7.4.330.0000.00515.08
7.4.320.0070.00016.63
7.4.300.0060.00016.43
7.4.290.0030.00316.61
7.4.280.0040.00416.61
7.4.270.0000.00816.58
7.4.260.0040.00416.52
7.4.250.0040.00416.46
7.4.240.0000.00716.64
7.4.230.0070.00016.44
7.4.220.0100.00916.46
7.4.210.0070.00716.39
7.4.200.0030.00316.41
7.4.160.0080.00616.67
7.4.150.0150.00417.40
7.4.140.0120.00817.86
7.4.130.0120.00516.38
7.4.120.0090.00816.58
7.4.110.0090.00916.52
7.4.100.0120.00916.62
7.4.90.0140.00316.38
7.4.80.0090.00919.39
7.4.70.0140.01016.65
7.4.60.0090.00616.62
7.4.50.0070.00716.39
7.4.40.0030.01316.60
7.4.30.0060.01016.38
7.4.00.0060.01014.89
7.3.330.0050.00013.09
7.3.320.0030.00313.17
7.3.310.0000.00716.40
7.3.300.0030.00316.33
7.3.290.0110.00716.36
7.3.280.0110.00816.41
7.3.270.0110.00717.40
7.3.260.0080.01716.29
7.3.250.0140.00716.47
7.3.240.0080.01216.41
7.3.230.0120.00616.48
7.3.210.0100.00716.38
7.3.200.0060.01319.39
7.3.190.0030.01316.61
7.3.180.0120.00316.31
7.3.170.0110.01116.63
7.3.160.0100.00716.36
7.2.330.0000.01816.37
7.2.320.0140.00816.30
7.2.310.0070.01416.61
7.2.300.0060.01216.55
7.2.290.0080.00816.64
7.2.60.0000.01216.85
7.2.00.0000.01019.30
7.1.200.0060.00615.85
7.1.100.0000.01018.27
7.1.70.0070.00417.20
7.1.60.0120.00919.20
7.1.50.0190.00916.58
7.1.00.0030.07322.46
7.0.200.0040.00416.79
7.0.60.0170.03019.95
7.0.50.0300.06720.16
7.0.40.0270.07020.26
7.0.30.0270.06020.32
7.0.20.0200.07320.40
7.0.10.0170.05320.25
7.0.00.0170.06020.31
5.6.280.0030.07021.04
5.6.210.0100.03320.59
5.6.200.0130.07321.08
5.6.190.0430.05321.13
5.6.180.0170.06021.12
5.6.170.0400.05321.05
5.6.160.0170.06721.13
5.6.150.0170.05721.17
5.6.140.0230.05021.14
5.6.130.0230.05021.03
5.6.120.0200.06021.01
5.6.110.0100.07021.09
5.6.100.0300.04321.05
5.6.90.0200.05721.02
5.6.80.0230.05720.43
5.6.70.0200.05020.52
5.6.60.0200.05320.49
5.6.50.0170.05320.47
5.6.40.0200.06020.38
5.6.30.0130.06720.45
5.6.20.0300.05320.45
5.6.10.0270.05020.43
5.6.00.0170.06020.37
5.5.350.3100.03720.48
5.5.340.0230.05320.84
5.5.330.0200.07021.03
5.5.320.0170.05721.04
5.5.310.0230.06020.88
5.5.300.0130.05720.88
5.5.290.0030.07021.01
5.5.280.0330.04720.79
5.5.270.0200.06320.91
5.5.260.0170.07020.83
5.5.250.0100.06320.66
5.5.240.0100.05720.32
5.5.230.0200.06320.05
5.5.220.0200.05320.21
5.5.210.0200.04720.05
5.5.200.0100.05720.30
5.5.190.0170.06020.19
5.5.180.0300.05320.14
5.5.160.0330.04320.36
5.5.150.0300.04320.19
5.5.140.0370.05320.25
5.5.130.0170.05720.20
5.5.120.0170.06020.23
5.5.110.0300.05720.13
5.5.100.0330.04719.92
5.5.90.0300.04020.11
5.5.80.0170.05320.11
5.5.70.0170.05720.10
5.5.60.0270.04720.23
5.5.50.0270.05720.16
5.5.40.0300.04320.13
5.5.30.0200.05720.10
5.5.20.0230.05720.14
5.5.10.0200.05720.11
5.5.00.0400.04020.11

preferences:
28.3 ms | 403 KiB | 5 Q