3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = '/tmp/socket'; touch($file); $server = stream_socket_server('unix://' . $file, $errno, $errstr); var_dump(gettype($server), $errno, $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.130.0130.00719.30
8.4.120.0100.00920.63
8.4.110.0110.00922.45
8.4.100.0150.00617.66
8.4.90.0120.01018.05
8.4.80.0070.00217.95
8.4.70.0150.00517.76
8.4.60.0090.01218.68
8.4.50.0110.00817.96
8.4.40.0050.00317.64
8.4.30.0140.00717.77
8.4.20.0090.00917.64
8.4.10.0100.00619.73
8.3.260.0100.01116.82
8.3.250.0160.00318.79
8.3.240.0110.00816.59
8.3.230.0140.00516.70
8.3.220.0090.01018.93
8.3.210.0100.00916.85
8.3.200.0040.00516.65
8.3.190.0120.00620.98
8.3.180.0110.00816.89
8.3.170.0060.00317.12
8.3.160.0120.00616.74
8.3.150.0140.00318.95
8.3.140.0040.01118.46
8.3.130.0060.00316.66
8.3.120.0000.00820.62
8.3.110.0180.00420.94
8.3.100.0160.00324.06
8.3.90.0040.00426.77
8.3.80.0030.00718.43
8.3.70.0110.00718.43
8.3.60.0060.00918.49
8.3.50.0120.00118.19
8.3.40.0160.00018.71
8.3.30.0070.00718.71
8.3.20.0080.00018.95
8.3.10.0040.00421.74
8.3.00.0040.00423.61
8.2.290.0100.00920.45
8.2.280.0070.00318.29
8.2.270.0080.00016.69
8.2.260.0060.01322.45
8.2.250.0080.00016.71
8.2.240.0080.00019.08
8.2.230.0060.00322.58
8.2.220.0080.00037.54
8.2.210.0000.00826.77
8.2.200.0080.00018.66
8.2.190.0140.00716.58
8.2.180.0140.00716.50
8.2.170.0090.00622.96
8.2.160.0110.00418.91
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00619.48
8.2.110.0090.00019.03
8.2.100.0100.00317.84
8.2.90.0200.00219.66
8.2.80.0160.00318.21
8.2.70.0250.00018.55
8.2.60.0230.00218.46
8.2.50.0140.01118.51
8.2.40.0180.00518.53
8.2.30.0110.01118.61
8.2.20.0180.00418.58
8.2.10.0170.00518.62
8.2.00.0200.00218.68
8.1.330.0090.00919.98
8.1.320.0140.00516.27
8.1.310.0170.00018.67
8.1.300.0050.00516.46
8.1.290.0090.00030.84
8.1.280.0130.00625.92
8.1.270.0000.00820.25
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00622.13
8.1.230.0060.00621.02
8.1.220.0160.00218.13
8.1.210.0120.00618.69
8.1.200.0180.00418.30
8.1.190.0210.00218.45
8.1.180.0210.00418.30
8.1.170.0220.00418.55
8.1.160.0180.00618.47
8.1.150.0180.00418.50
8.1.140.0200.00318.62
8.1.130.0160.00618.52
8.1.120.0130.00818.56
8.1.110.0170.00418.49
8.1.100.0200.00218.51
8.1.90.0180.00518.49
8.1.80.0190.00418.52
8.1.70.0140.00818.54
8.1.60.0210.00218.57
8.1.50.0160.00618.63
8.1.40.0190.00318.57
8.1.30.0150.00818.58
8.1.20.0200.00318.66
8.1.10.0180.00518.43
8.1.00.0220.00218.48
8.0.300.0170.00118.93
8.0.290.0210.00318.21
8.0.280.0180.00418.21
8.0.270.0170.00618.22
8.0.260.0200.00218.26
8.0.250.0140.00618.17
8.0.240.0140.00818.08
8.0.230.0140.00918.27
8.0.220.0170.00518.13
8.0.210.0200.00218.19
8.0.200.0140.00818.22
8.0.190.0180.00418.21
8.0.180.0200.00518.15
8.0.170.0140.00718.24
8.0.160.0200.00618.24
8.0.150.0200.00518.27
8.0.140.0180.00418.27
8.0.130.0170.00518.30
8.0.120.0190.00218.23
8.0.110.0190.00218.34
8.0.100.0200.00518.17
8.0.90.0190.00318.20
8.0.80.0130.00918.25
8.0.70.0190.00318.29
8.0.60.0190.00218.25
8.0.50.0170.00418.22
8.0.30.0140.00618.29
8.0.20.0190.00318.21
8.0.10.0170.00418.21
8.0.00.0180.00318.34
7.4.330.0160.00117.59
7.4.320.0180.00318.05
7.4.300.0200.00117.93
7.4.290.0130.00818.10
7.4.280.0180.00217.99
7.4.270.0180.00217.88
7.4.260.0180.00317.93
7.4.250.0130.00817.94
7.4.240.0150.00618.08
7.4.230.0140.00518.09
7.4.220.0200.00117.97
7.4.210.0190.00218.07
7.4.200.0130.00717.93
7.4.190.0150.00417.96
7.4.180.0140.00718.06
7.4.160.0170.00418.00
7.4.150.0180.00218.04
7.4.140.0220.00317.90
7.4.130.0190.00417.97
7.4.120.0160.00318.09
7.4.110.0150.00417.92
7.4.100.0090.01018.12
7.4.90.0140.00618.07
7.4.80.0130.00818.04
7.4.70.0160.00517.94
7.4.60.0170.00317.92
7.4.50.0110.00917.88
7.4.40.0170.00417.79
7.4.30.0160.00317.97
7.4.20.0110.01017.96
7.4.10.0170.00217.91
7.4.00.0160.00518.01
7.3.330.0150.00417.85
7.3.320.0150.00417.89
7.3.310.0140.00517.72
7.3.300.0130.00717.90
7.3.290.0170.00417.91
7.3.280.0160.00417.86
7.3.270.0170.00317.95
7.3.260.0150.00417.88
7.3.250.0090.01117.84
7.3.240.0170.00317.85
7.3.230.0170.00317.96
7.3.220.0120.00917.92
7.3.210.0160.00417.90
7.3.200.0180.00317.87
7.3.190.0190.00217.80
7.3.180.0210.00217.97
7.3.170.0170.00517.69
7.3.160.0170.00617.82
7.3.150.0180.00317.73
7.3.140.0190.00317.80
7.3.130.0190.00517.69
7.3.120.0200.00117.84
7.3.110.0150.00517.82
7.3.100.0180.00117.85
7.3.90.0180.00218.01
7.3.80.0140.00617.93
7.3.70.0160.00417.90
7.3.60.0150.00417.78
7.3.50.0180.00117.85
7.3.40.0170.00417.85
7.3.30.0160.00317.94
7.3.20.0140.00718.89
7.3.10.0170.00318.74
7.3.00.0180.00318.79
7.2.340.0130.00617.78
7.2.330.0120.00917.82
7.2.320.0160.00417.85
7.2.310.0150.00517.84
7.2.300.0180.00417.86
7.2.290.0170.00217.90
7.2.280.0180.00217.84
7.2.270.0170.00217.87
7.2.260.0110.00817.87
7.2.250.0190.00217.95
7.2.240.0190.00017.87
7.2.230.0110.00917.87
7.2.220.0190.00017.98
7.2.210.0140.00617.91
7.2.200.0150.00618.00
7.2.190.0150.00517.95
7.2.180.0170.00317.87
7.2.170.0190.00418.03
7.2.160.0150.00517.97
7.2.150.0200.00218.74
7.2.140.0200.00318.92
7.2.130.0180.00518.94
7.2.120.0150.00718.94
7.2.110.0190.00218.92
7.2.100.0130.00719.02
7.2.90.0170.00418.88
7.2.80.0130.00918.98
7.2.70.0150.00618.94
7.2.60.0190.00218.83
7.2.50.0160.00618.87
7.2.40.0170.00518.97
7.2.30.0200.00218.92
7.2.20.0160.00518.89
7.2.10.0180.00419.00
7.2.00.0140.00818.84
7.1.330.0180.00118.45
7.1.320.0120.00718.28
7.1.310.0130.00618.38
7.1.300.0130.00618.39
7.1.290.0150.00418.40
7.1.280.0120.00718.33
7.1.270.0130.00518.31
7.1.260.0150.00418.54
7.1.250.0120.00718.46
7.1.240.0120.00718.26
7.1.230.0130.00618.35
7.1.220.0150.00418.24
7.1.210.0150.00518.31
7.1.200.0150.00418.31
7.1.190.0170.00318.46
7.1.180.0160.00318.42
7.1.170.0150.00618.42
7.1.160.0160.00218.20
7.1.150.0140.00518.36
7.1.140.0170.00218.34
7.1.130.0150.00418.32
7.1.120.0150.00418.42
7.1.110.0180.00318.32
7.1.100.0170.00518.29
7.1.90.0160.00418.33
7.1.80.0160.00318.29
7.1.70.0150.00518.22
7.1.60.0140.00518.23
7.1.50.0110.00718.38
7.1.40.0120.00618.46
7.1.30.0140.00518.48
7.1.20.0150.00418.16
7.1.10.0160.00218.33
7.1.00.0160.00218.32
7.0.330.0190.00018.15
7.0.320.0130.00618.10
7.0.310.0180.00018.22
7.0.300.0150.00218.33
7.0.290.0080.01018.30
7.0.280.0140.00418.21
7.0.270.0140.00418.11
7.0.260.0190.00018.05
7.0.250.0150.00318.26
7.0.240.0140.00418.06
7.0.230.0170.00418.26
7.0.220.0120.00518.26
7.0.210.0130.00518.37
7.0.200.0130.00618.30
7.0.190.0130.00418.14
7.0.180.0130.00418.22
7.0.170.0150.00318.26
7.0.160.0060.01118.13
7.0.150.0130.00518.31
7.0.140.0140.00518.31
7.0.130.0150.00418.32
7.0.120.0130.00518.30
7.0.110.0160.00218.22
7.0.100.0170.00118.35
7.0.90.0160.00318.27
7.0.80.0100.00818.23
7.0.70.0160.00218.08
7.0.60.0090.01018.30
7.0.50.0160.00218.12
7.0.40.0140.00518.17
7.0.30.0160.00418.26
7.0.20.0150.00318.17
7.0.10.0170.00218.17
7.0.00.0090.00918.29
5.6.400.0120.00517.59
5.6.390.0130.00417.60
5.6.380.0120.00617.59
5.6.370.0130.00417.59
5.6.360.0140.00417.76
5.6.350.0100.00717.59
5.6.340.0160.00217.59
5.6.330.0130.00517.75
5.6.320.0170.00217.63
5.6.310.0130.00617.61
5.6.300.0140.00417.61
5.6.290.0130.00517.62
5.6.280.0120.00517.59
5.6.270.0140.00417.68
5.6.260.0110.00617.64
5.6.250.0160.00217.63
5.6.240.0170.00217.68
5.6.230.0160.00217.69
5.6.220.0130.00417.66
5.6.210.0160.00117.64
5.6.200.0110.00617.68
5.6.190.0140.00517.60
5.6.180.0200.00017.59
5.6.170.0120.00617.62
5.6.160.0140.00317.65
5.6.150.0140.00317.75
5.6.140.0150.00217.69
5.6.130.0140.00417.59
5.6.120.0130.00417.74
5.6.110.0130.00417.64
5.6.100.0130.00317.59
5.6.90.0140.00417.61
5.6.80.0100.00717.62
5.6.70.0130.00417.64
5.6.60.0120.00517.71
5.6.50.0120.00617.61
5.6.40.0110.00517.59
5.6.30.0130.00517.61
5.6.20.0100.00817.59
5.6.10.0180.00317.59
5.6.00.0140.00417.59

preferences:
30.34 ms | 403 KiB | 5 Q