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 = tmpfile(); fwrite($tmp, $data); // Store the file pointer so that it isn't freed // right away. $files[] = $tmp; }

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.0140.00418.30
8.3.50.0120.01021.95
8.3.40.0110.00418.79
8.3.30.0180.00319.11
8.3.20.0050.00220.29
8.3.10.0000.00822.09
8.3.00.0040.00422.46
8.2.180.0070.00716.88
8.2.170.0140.00422.96
8.2.160.0070.00720.94
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00619.49
8.2.110.0000.00922.07
8.2.100.0100.00317.78
8.2.90.0050.00219.08
8.2.80.0030.00618.03
8.2.70.0030.00717.38
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0030.00618.09
8.2.30.0000.00717.97
8.2.20.0040.00417.54
8.2.10.0080.00017.79
8.2.00.0040.00417.75
8.1.280.0110.00725.92
8.1.270.0040.00423.97
8.1.260.0050.00326.35
8.1.250.0070.00728.09
8.1.240.0070.00323.86
8.1.230.0040.00819.16
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0000.00717.41
8.1.180.0050.00318.10
8.1.170.0040.00418.64
8.1.160.0050.00321.88
8.1.150.0070.00018.54
8.1.140.0040.00417.30
8.1.130.0030.00317.87
8.1.120.0040.00417.45
8.1.110.0030.00317.37
8.1.100.0040.00417.32
8.1.90.0080.00017.44
8.1.80.0040.00417.36
8.1.70.0000.00717.36
8.1.60.0080.00017.51
8.1.50.0040.00417.45
8.1.40.0070.00017.51
8.1.30.0040.00417.71
8.1.20.0000.00917.65
8.1.10.0040.00417.57
8.1.00.0050.00217.51
8.0.300.0080.00018.77
8.0.290.0070.00017.28
8.0.280.0000.00718.46
8.0.270.0000.00717.19
8.0.260.0000.00716.77
8.0.250.0040.00417.00
8.0.240.0000.00716.99
8.0.230.0030.00617.06
8.0.220.0050.00316.90
8.0.210.0060.00016.98
8.0.200.0000.00616.87
8.0.190.0040.00416.96
8.0.180.0000.00716.88
8.0.170.0050.00316.98
8.0.160.0000.00816.81
8.0.150.0000.00716.89
8.0.140.0000.00716.75
8.0.130.0390.00414.57
8.0.120.0040.00416.89
8.0.110.0030.00516.95
8.0.100.0040.00417.00
8.0.90.0000.00716.87
8.0.80.0060.01016.91
8.0.70.0040.00416.82
8.0.60.0000.00716.83
8.0.50.0030.00516.86
8.0.30.0120.00716.98
8.0.20.0110.01117.40
8.0.10.0040.00417.02
8.0.00.0080.01516.71
7.4.330.0120.00915.15
7.4.320.0030.00716.49
7.4.300.0050.00516.62
7.4.290.0030.00616.66
7.4.280.0030.00616.52
7.4.270.0000.00916.46
7.4.260.0080.00816.58
7.4.250.0000.01016.58
7.4.240.0030.00716.63
7.4.230.0040.00416.44
7.4.220.0220.00616.65
7.4.210.0150.01816.64
7.4.200.0090.00016.53
7.4.190.0060.00316.34
7.4.160.0140.01416.44
7.4.150.0200.01417.40
7.4.140.0200.01617.86
7.4.130.0180.02016.54
7.4.120.0210.01316.64
7.4.110.0220.00616.77
7.4.100.0220.01216.80
7.4.90.0260.00716.55
7.4.80.0290.01016.55
7.4.70.0130.01316.45
7.4.60.0130.01316.80
7.4.50.0080.00416.43
7.4.40.0140.00722.77
7.4.30.0060.02216.35
7.4.00.0060.00615.17
7.3.330.0260.00314.52
7.3.320.0260.00314.62
7.3.310.0030.00716.39
7.3.300.0000.00916.37
7.3.290.0160.01616.55
7.3.280.0130.01716.38
7.3.270.0210.01317.40
7.3.260.0290.01716.46
7.3.250.0240.01216.31
7.3.240.0190.01016.53
7.3.230.0240.00716.53
7.3.210.0190.01516.61
7.3.200.0180.01119.39
7.3.190.0100.01716.28
7.3.180.0240.00716.37
7.3.170.0170.01116.55
7.3.160.0170.01716.34
7.3.120.0100.01015.09
7.2.330.0180.01216.55
7.2.320.0170.01816.85
7.2.310.0200.00816.81
7.2.300.0120.02116.55
7.2.290.0200.00716.91
7.2.00.0290.00319.34
7.1.100.0170.01018.06
7.1.70.0140.00717.08
7.1.60.0340.00317.23
7.1.50.0360.02634.65
7.0.200.0230.02316.92

preferences:
38.09 ms | 401 KiB | 5 Q