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)) { 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.4.20.0030.00619.83
8.4.10.0030.00617.88
8.3.150.0160.00316.54
8.3.140.0080.00018.79
8.3.130.0000.00918.44
8.3.120.0060.00320.82
8.3.110.0100.00020.94
8.3.100.0030.00724.06
8.3.90.0050.00326.77
8.3.80.0030.00718.31
8.3.70.0180.00416.75
8.3.60.0110.00418.43
8.3.50.0090.01216.55
8.3.40.0150.00318.84
8.3.30.0150.00418.67
8.3.20.0070.00021.82
8.3.10.0080.00023.55
8.3.00.0090.00019.69
8.2.270.0070.01118.92
8.2.260.0120.00316.78
8.2.250.0050.00316.96
8.2.240.0040.00416.96
8.2.230.0150.00422.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0060.00316.63
8.2.190.0120.00917.00
8.2.180.0070.01418.54
8.2.170.0150.00322.96
8.2.160.0070.00719.46
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.38
8.2.120.0080.00026.35
8.2.110.0070.00421.05
8.2.100.0000.01217.84
8.2.90.0040.00417.84
8.2.80.0040.00418.03
8.2.70.0080.00017.93
8.2.60.0050.00317.50
8.2.50.0040.00418.16
8.2.40.0040.00422.00
8.2.30.0000.00719.51
8.2.20.0000.00817.98
8.2.10.0030.00617.75
8.2.00.0040.00418.12
8.1.310.0030.01218.36
8.1.300.0040.00418.35
8.1.290.0070.00330.84
8.1.280.0100.01025.92
8.1.270.0040.00423.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.51
8.1.230.0000.01120.83
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0050.00317.25
8.1.190.0000.00817.25
8.1.180.0040.00418.10
8.1.170.0080.00018.59
8.1.160.0030.00418.85
8.1.150.0070.00020.29
8.1.140.0020.00517.53
8.1.130.0030.00618.88
8.1.120.0000.00917.43
8.1.110.0040.00417.41
8.1.100.0040.00417.34
8.1.90.0050.00217.30
8.1.80.0090.00017.46
8.1.70.0030.00317.36
8.1.60.0090.00017.52
8.1.50.0040.00417.50
8.1.40.0000.00817.53
8.1.30.0030.00617.68
8.1.20.0040.00417.55
8.1.10.0030.00617.45
8.1.00.0000.00817.36
8.0.300.0040.00419.89
8.0.290.0040.00416.75
8.0.280.0020.00518.36
8.0.270.0000.00717.26
8.0.260.0040.00416.84
8.0.250.0030.00317.06
8.0.240.0000.00717.03
8.0.230.0000.00716.92
8.0.220.0030.00316.96
8.0.210.0000.00716.93
8.0.200.0000.00717.07
8.0.190.0000.00717.07
8.0.180.0000.00817.00
8.0.170.0040.00416.88
8.0.160.0030.00317.01
8.0.150.0030.00316.95
8.0.140.0030.00316.84
8.0.130.0060.00013.40
8.0.120.0070.00016.83
8.0.110.0040.00416.86
8.0.100.0030.00517.04
8.0.90.0030.00517.04
8.0.80.0100.01016.93
8.0.70.0050.00216.88
8.0.60.0000.00716.94
8.0.50.0000.00717.04
8.0.30.0080.01117.00
8.0.20.0110.00917.40
8.0.10.0000.00716.90
8.0.00.0090.01116.54
7.4.330.0000.00615.55
7.4.320.0030.00316.42
7.4.300.0000.00616.57
7.4.290.0000.00716.46
7.4.280.0080.00016.56
7.4.270.0030.00316.60
7.4.260.0040.00416.45
7.4.250.0000.00716.32
7.4.240.0040.00416.49
7.4.230.0030.00316.47
7.4.220.0040.00416.50
7.4.210.0040.01316.63
7.4.200.0070.00016.63
7.4.160.0110.01016.52
7.4.140.0100.00917.86
7.4.130.0090.00916.64
7.4.120.0110.00716.63
7.4.110.0110.01116.52
7.4.100.0060.01016.49
7.4.90.0120.00816.66
7.4.80.0120.01219.39
7.4.70.0150.00616.79
7.4.60.0100.00616.48
7.4.50.0110.00716.29
7.4.40.0140.00716.47
7.4.10.0100.00714.98
7.4.00.0080.00714.75
7.3.330.0050.00013.34
7.3.320.0000.00713.31
7.3.310.0030.00316.30
7.3.300.0060.00016.31
7.3.290.0030.00316.33
7.3.280.0050.01116.21
7.3.260.0070.01016.48
7.3.240.0090.00716.52
7.3.230.0090.00916.35
7.3.210.0030.01416.36
7.3.200.0060.01116.28
7.3.190.0110.00416.34
7.3.180.0110.00616.56
7.3.170.0060.01116.38
7.3.160.0030.01316.38
7.3.130.0100.00714.68
7.3.120.0080.01014.81
7.3.110.0080.00714.89
7.3.100.0050.01014.65
7.3.90.0050.00914.70
7.3.80.0020.00914.70
7.3.70.0060.00914.62
7.3.60.0100.00514.65
7.3.50.0070.00514.85
7.3.40.0080.00714.85
7.3.30.0030.00914.69
7.3.20.0040.01016.58
7.3.10.0070.00516.56
7.3.00.0060.00616.54
7.2.330.0000.01916.65
7.2.320.0060.01616.64
7.2.310.0070.01016.55
7.2.300.0060.01016.31
7.2.290.0060.01516.69
7.2.260.0070.01015.21
7.2.250.0050.01215.02
7.2.240.0060.00915.05
7.2.230.0080.00714.94
7.2.220.0040.01014.85
7.2.210.0090.00514.88
7.2.200.0060.01115.05
7.2.190.0090.00914.87
7.2.180.0030.01215.02
7.2.170.0070.00715.00
7.2.160.0050.01014.82
7.2.150.0090.00716.84
7.2.140.0050.01216.90
7.2.130.0030.00916.80
7.2.120.0020.01316.81
7.2.110.0100.00716.85
7.2.100.0060.00616.87
7.2.90.0050.01116.96
7.2.80.0080.00616.52
7.2.70.0050.00716.70
7.2.60.0070.00816.92
7.2.50.0060.00616.86
7.2.40.0050.01216.57
7.2.30.0090.00717.32
7.2.20.0090.01217.11
7.2.10.0050.01517.22
7.2.00.0700.01117.11
7.1.330.0070.00915.68
7.1.320.0070.00715.56
7.1.310.0040.00715.78
7.1.300.0060.00815.68
7.1.290.0050.00915.64
7.1.280.0050.00715.61
7.1.270.0070.00615.59
7.1.260.0070.00615.75
7.1.250.0060.00815.66
7.1.240.0030.01215.48
7.1.230.0030.01115.72
7.1.220.0030.01115.77
7.1.210.0090.00415.66
7.1.200.0080.00715.79
7.1.190.0020.01115.82
7.1.180.0050.00615.62
7.1.170.0020.00915.77
7.1.160.0110.00315.75
7.1.150.0110.01016.09
7.1.140.0060.01116.12
7.1.130.0100.00816.11
7.1.120.0080.01216.21
7.1.110.0090.00815.79
7.1.100.0070.00815.83
7.1.90.0070.01015.66
7.1.80.0090.00815.83
7.1.70.0100.00815.51
7.1.60.0110.01221.41
7.1.50.0130.00921.53
7.1.40.0140.00921.36
7.1.30.0130.00821.36
7.1.20.0110.01121.33
7.1.10.0040.01115.36
7.1.00.0070.00915.39
7.0.330.0050.00715.35
7.0.320.0040.00615.35
7.0.310.0050.00915.29
7.0.300.0030.00615.47
7.0.290.0080.00415.25
7.0.280.0060.00815.33
7.0.270.0020.00715.33
7.0.260.0040.00515.30
7.0.250.0050.00915.30
7.0.240.0080.00615.28
7.0.230.0050.01015.43
7.0.220.0080.00615.18
7.0.210.0050.01115.24
7.0.200.0060.00615.32
7.0.190.0090.00415.29
7.0.180.0090.00515.47
7.0.170.0040.00715.51
7.0.160.0020.01115.50
7.0.150.0040.01015.24
7.0.140.0040.00515.42
7.0.130.0070.00815.30
7.0.120.0060.00915.49
7.0.110.0030.01015.48
7.0.100.0050.00715.34
7.0.90.0050.00915.31
7.0.80.0080.00815.32
7.0.70.0080.00515.37
7.0.60.0050.00815.35
7.0.50.0080.00215.38
7.0.40.0010.00913.25
7.0.30.0090.00713.39
7.0.20.0040.01213.26
7.0.10.0050.00913.49
7.0.00.0030.00913.23
5.6.400.0090.00914.06
5.6.390.0030.01114.12
5.6.380.0060.00514.20
5.6.370.0020.01413.91
5.6.360.0050.01114.14
5.6.350.0090.00314.32
5.6.340.0120.00514.11
5.6.330.0000.01314.26
5.6.320.0060.00614.00
5.6.310.0080.00513.98
5.6.300.0040.00914.06
5.6.290.0040.00714.33
5.6.280.0090.00714.11
5.6.270.0080.00714.20
5.6.260.0080.00914.15
5.6.250.0050.00714.24
5.6.240.0060.00914.07
5.6.230.0030.00914.19
5.6.220.0080.00614.06
5.6.210.0040.00814.15
5.6.200.0020.01014.27
5.6.190.0050.00614.11
5.6.180.0060.00914.02
5.6.170.0030.01214.16
5.6.160.0070.00813.96
5.6.150.0090.00514.14
5.6.140.0030.00714.04
5.6.130.0010.01113.90
5.6.120.0040.00914.01
5.6.110.0030.01014.22
5.6.100.0030.00914.09
5.6.90.0060.00814.11
5.6.80.0130.00313.86
5.6.70.0020.01513.99
5.6.60.0050.00913.93
5.6.50.0080.00814.05
5.6.40.0080.00513.95
5.6.30.0070.00614.15
5.6.20.0070.00714.06
5.6.10.0070.00714.05
5.6.00.0060.00514.14

preferences:
25.24 ms | 403 KiB | 5 Q