3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = '/dev/urandom'; $handle = fopen($file, 'r'); $files = array(); while ( TRUE ) { $data = base64_encode(fread($handle, 200)); $tmp = fopen(tempnam(), 'r'); fwrite($tmp, 'hello'); }

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.0090.00916.75
8.3.50.0060.01321.82
8.3.40.0000.01418.96
8.3.30.0070.00718.86
8.3.20.0040.00420.16
8.3.10.0030.00623.54
8.3.00.0000.00819.38
8.2.180.0040.01118.67
8.2.170.0120.00322.96
8.2.160.0090.00620.16
8.2.150.0030.00624.18
8.2.140.0000.00924.66
8.2.130.0040.00426.16
8.2.120.0080.00022.13
8.2.110.0090.00022.12
8.2.100.0090.00317.91
8.2.90.0000.00819.11
8.2.80.0030.00518.03
8.2.70.0000.00817.47
8.2.60.0000.00917.80
8.2.50.0060.00318.07
8.2.40.0040.00417.91
8.2.30.0070.00017.98
8.2.20.0040.00417.74
8.2.10.0000.00718.04
8.2.00.0000.00817.70
8.1.280.0060.01225.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0080.00023.79
8.1.230.0000.01219.00
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0000.00817.30
8.1.180.0090.00018.10
8.1.170.0030.00618.50
8.1.160.0030.00621.94
8.1.150.0030.00618.51
8.1.140.0040.00417.30
8.1.130.0030.00317.84
8.1.120.0000.00817.43
8.1.110.0040.00417.26
8.1.100.0020.00517.40
8.1.90.0080.00017.43
8.1.80.0030.00317.45
8.1.70.0000.00717.35
8.1.60.0040.00417.54
8.1.50.0000.00817.48
8.1.40.0040.00417.50
8.1.30.0050.00317.60
8.1.20.0030.00517.65
8.1.10.0040.00417.59
8.1.00.0060.00317.51
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0030.00318.45
8.0.270.0070.00017.34
8.0.260.0050.00316.84
8.0.250.0030.00317.02
8.0.240.0000.00816.93
8.0.230.0000.00816.89
8.0.220.0040.00416.86
8.0.210.0000.00716.86
8.0.200.0000.00617.00
8.0.190.0030.00916.88
8.0.180.0040.00417.03
8.0.170.0040.00417.00
8.0.160.0000.00716.81
8.0.150.0030.00316.87
8.0.140.0030.00316.86
8.0.130.0000.00613.38
8.0.120.0000.00816.94
8.0.110.0000.00816.92
8.0.100.0030.00516.97
8.0.90.0040.00416.84
8.0.80.0030.01316.98
8.0.70.0070.00016.91
8.0.60.0030.00517.02
8.0.50.0050.00316.92
8.0.30.0180.00516.91
8.0.20.0110.01117.40
8.0.10.0040.00416.88
8.0.00.0060.01116.92
7.4.330.0040.00615.00
7.4.320.0040.00416.32
7.4.300.0050.00316.24
7.4.290.0060.00316.42
7.4.280.0050.00316.44
7.4.270.0000.00916.41
7.4.260.0030.00316.30
7.4.250.0040.00416.38
7.4.240.0030.00516.33
7.4.230.0030.00616.42
7.4.220.0080.01616.28
7.4.210.0060.01316.37
7.4.200.0030.00516.34
7.4.190.0000.00816.41
7.4.160.0280.01016.50
7.4.150.0240.01117.40
7.4.140.0230.00917.86
7.4.130.0170.01516.31
7.4.120.0190.01016.34
7.4.110.0320.01716.50
7.4.100.0410.01416.38
7.4.90.0120.00616.42
7.4.80.0320.00919.39
7.4.70.0170.01516.43
7.4.60.0260.01016.38
7.4.50.0060.00316.26
7.4.40.0100.00322.77
7.4.30.0070.01116.30
7.3.330.0080.00013.11
7.3.320.0000.01013.12
7.3.310.0000.00716.16
7.3.300.0000.00716.24
7.3.290.0120.00316.19
7.3.280.0030.01916.24
7.3.270.0120.01517.40
7.3.260.0260.00916.09
7.3.250.0170.02016.27
7.3.240.0170.01716.45
7.3.230.0130.00916.39
7.3.210.0170.01216.23
7.3.200.0270.00519.39
7.3.190.0160.01016.39
7.3.180.0070.01016.20
7.3.170.0120.02016.48
7.3.160.0240.01216.27
7.2.330.0640.01316.25
7.2.320.0130.00616.39
7.2.310.0050.01916.43
7.2.300.0300.00816.28
7.2.290.0130.01316.24
5.4.40.0230.04316.32
5.4.30.0130.04316.39
5.4.20.0070.06316.32
5.4.10.0130.04016.33
5.4.00.0070.07315.70
5.3.140.0130.05315.70
5.3.130.0130.07314.42
5.3.120.0100.06014.35
5.3.110.0230.07315.70
5.3.100.0070.06015.70
5.3.90.0070.04715.70
5.3.80.0100.04315.70
5.3.70.0230.06013.69
5.3.60.0070.04015.70
5.3.50.0070.07315.70
5.3.40.0170.04315.70
5.3.30.0170.05013.68
5.3.20.0100.07315.70
5.3.10.0070.06013.41
5.3.00.0200.06713.45

preferences:
36.39 ms | 401 KiB | 5 Q