3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function (int $severity, string $message, string $file, int $line) { throw new ErrorException($message, $severity, $severity, $file, $line); }); if (!$resource = @stream_socket_client('tcp://123.456.789', $errno, $errstr, $timeout, $flags)) { throw new Exception($errstr); }

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.00418.18
8.3.50.0170.00318.19
8.3.40.0140.00418.62
8.3.30.0060.00918.68
8.3.20.0000.00721.91
8.3.10.0070.00023.53
8.3.00.0000.00819.44
8.2.180.0040.01118.66
8.2.170.0090.00622.96
8.2.160.0070.00719.29
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00420.45
8.2.120.0060.00326.35
8.2.110.0060.00620.91
8.2.100.0070.00417.91
8.2.90.0060.00317.89
8.2.80.0040.00418.09
8.2.70.0030.00618.04
8.2.60.0040.00417.50
8.2.50.0000.00718.16
8.2.40.0000.00720.55
8.2.30.0030.00519.30
8.2.20.0000.00818.00
8.2.10.0060.00517.78
8.2.00.0040.00418.07
8.1.280.0090.00925.92
8.1.270.0050.00323.82
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0040.00422.54
8.1.230.0040.00822.82
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0050.00317.35
8.1.190.0080.00017.13
8.1.180.0040.00418.10
8.1.170.0030.00518.66
8.1.160.0040.00418.76
8.1.150.0000.00720.28
8.1.140.0000.00717.57
8.1.130.0040.00418.96
8.1.120.0040.00417.41
8.1.110.0080.00017.39
8.1.100.0060.00317.42
8.1.90.0070.00017.23
8.1.80.0030.00517.24
8.1.70.0030.00317.45
8.1.60.0030.00617.55
8.1.50.0030.00617.46
8.1.40.0040.00417.50
8.1.30.0060.00317.66
8.1.20.0000.00717.46
8.1.10.0030.00517.48
8.1.00.0040.00417.32
8.0.300.0040.00419.87
8.0.290.0000.00916.75
8.0.280.0080.00018.44
8.0.270.0070.00017.28
8.0.260.0000.00716.89
8.0.250.0030.00516.95
8.0.240.0050.00217.07
8.0.230.0000.00716.94
8.0.220.0030.00316.86
8.0.210.0070.00016.98
8.0.200.0000.00717.02
8.0.190.0030.00316.95
8.0.180.0070.00016.96
8.0.170.0030.00616.99
8.0.160.0000.00716.94
8.0.150.0070.00016.98
8.0.140.0070.00016.95
8.0.130.0030.00313.39
8.0.120.0070.00016.82
8.0.110.0040.00416.86
8.0.100.0040.00416.85
8.0.90.0050.00316.83
8.0.80.0100.01016.88
8.0.70.0000.00716.74
8.0.60.0050.00216.83
8.0.50.0040.00416.76
8.0.30.0130.00717.00
8.0.20.0100.01017.40
8.0.10.0000.00716.87
8.0.00.0080.01516.84
7.4.330.0030.00315.55
7.4.320.0000.00616.56
7.4.300.0000.00616.50
7.4.290.0070.00016.46
7.4.280.0050.00216.55
7.4.270.0000.00716.46
7.4.260.0000.00716.45
7.4.250.0030.00316.52
7.4.240.0070.00016.56
7.4.230.0000.00716.48
7.4.220.0040.00416.62
7.4.210.0100.01016.55
7.4.200.0040.00416.34
7.4.160.0110.00716.54
7.4.140.0120.00617.86
7.4.130.0100.01016.49
7.4.120.0090.01016.71
7.4.110.0100.00716.46
7.4.100.0080.00816.40
7.4.90.0070.01016.42
7.4.80.0000.01719.39
7.4.70.0070.01016.59
7.4.60.0000.01616.45
7.4.50.0000.01716.40
7.4.40.0030.01616.41
7.4.00.0170.00014.79
7.3.330.0020.00213.27
7.3.320.0060.00013.16
7.3.310.0070.00016.12
7.3.300.0000.00616.35
7.3.290.0030.00316.16
7.3.280.0120.00616.28
7.3.260.0130.00816.43
7.3.240.0080.01016.37
7.3.230.0140.00616.42
7.3.210.0100.00716.23
7.3.200.0130.00916.44
7.3.190.0120.00316.31
7.3.180.0130.00416.43
7.3.170.0060.00916.40
7.3.160.0040.01616.32
7.2.330.0090.00916.59
7.2.320.0100.01016.55
7.2.310.0060.01216.38
7.2.300.0120.00916.70
7.2.290.0140.00816.63
7.2.60.0070.00016.98
7.2.30.0130.01617.95
7.2.20.0150.01118.05
7.2.10.0230.00917.95
7.2.00.0180.01017.95
7.1.200.0000.01015.54
7.1.150.0170.01216.73
7.1.140.0150.01716.35
7.1.130.0140.01316.54
7.1.120.0160.01216.41
7.1.110.0200.01616.09
7.1.100.0140.01615.82
7.1.90.0210.01116.28
7.1.80.0190.01116.09
7.1.70.0150.01415.15
7.1.60.0440.01933.12
7.1.50.0380.02132.91
7.1.40.0370.01632.34
7.1.30.0410.01532.51
7.1.20.0340.01632.77
7.1.10.0200.00814.73
7.1.00.0150.01314.68

preferences:
36.81 ms | 404 KiB | 6 Q