3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = tempnam(sys_get_temp_dir()); file_put_contents(<<<HEREDOC lots of lines HEREDOC, $file); var_dump(nl2br(file_get_contents($file)));

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.0070.01318.30
8.3.50.0100.01121.08
8.3.40.0100.00618.77
8.3.30.0100.00320.34
8.3.20.0070.00020.35
8.3.10.0080.00021.06
8.3.00.0040.00422.39
8.2.180.0120.00316.75
8.2.170.0110.00722.96
8.2.160.0100.00322.14
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00020.79
8.2.110.0090.00620.59
8.2.100.0090.00317.78
8.2.90.0110.00019.27
8.2.80.0050.00317.97
8.2.70.0000.00917.63
8.2.60.0050.00317.80
8.2.50.0030.00518.10
8.2.40.0050.00318.09
8.2.30.0050.00219.40
8.2.20.0000.00717.72
8.2.10.0060.00317.71
8.2.00.0000.00717.66
8.1.280.0080.00625.92
8.1.270.0000.00823.99
8.1.260.0100.00726.35
8.1.250.0080.00028.09
8.1.240.0050.00522.62
8.1.230.0110.00017.67
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0110.00017.23
8.1.190.0050.00317.11
8.1.180.0050.00318.10
8.1.170.0040.00418.58
8.1.160.0000.00718.77
8.1.150.0030.00618.44
8.1.140.0040.00417.24
8.1.130.0000.00917.77
8.1.120.0040.00417.24
8.1.110.0040.00417.36
8.1.100.0000.00717.28
8.1.90.0070.00017.30
8.1.80.0030.00517.41
8.1.70.0030.00317.34
8.1.60.0000.00817.48
8.1.50.0040.00417.47
8.1.40.0040.00417.35
8.1.30.0040.00417.59
8.1.20.0000.00817.48
8.1.10.0040.00417.45
8.1.00.0000.00817.35
8.0.300.0020.00518.77
8.0.290.0040.00416.63
8.0.280.0040.00418.26
8.0.270.0000.00717.11
8.0.260.0060.00316.80
8.0.250.0060.00316.95
8.0.240.0050.00216.84
8.0.230.0030.00316.91
8.0.220.0050.00216.93
8.0.210.0040.00416.92
8.0.200.0000.00716.95
8.0.190.0030.00617.01
8.0.180.0000.00716.92
8.0.170.0000.00816.89
8.0.160.0000.00716.95
8.0.150.0050.00316.80
8.0.140.0060.00316.75
8.0.130.0000.00613.34
8.0.120.0040.00416.90
8.0.110.0020.00516.79
8.0.100.0070.00016.92
8.0.90.0030.00516.78
8.0.80.0030.01216.92
8.0.70.0050.00216.79
8.0.60.0040.00416.81
8.0.50.0080.00016.68
8.0.30.0080.01016.87
8.0.20.0080.01117.40
8.0.10.0050.00316.83
8.0.00.0200.02016.70
7.4.330.0000.00516.82
7.4.320.0030.00316.39
7.4.300.0000.00616.52
7.4.290.0030.00316.48
7.4.280.0040.00416.41
7.4.270.0070.00016.56
7.4.260.0000.00513.24
7.4.250.0040.00416.52
7.4.240.0030.00316.56
7.4.230.0030.00316.26
7.4.220.0060.01416.62
7.4.210.0080.00716.60
7.4.200.0040.00416.56
7.4.190.0000.00716.45
7.4.160.0110.00416.52
7.4.150.0030.01617.40
7.4.140.0100.00817.86
7.4.130.0070.01116.51
7.4.120.0100.00816.44
7.4.110.0080.00916.41
7.4.100.0070.01016.58
7.4.90.0230.00016.31
7.4.80.0060.01319.39
7.4.70.0100.00716.39
7.4.60.0090.01516.37
7.4.50.0050.00316.30
7.4.40.0060.00922.77
7.4.30.0180.00016.36
7.3.330.0050.00013.21
7.3.320.0050.00013.23
7.3.310.0000.00816.36
7.3.300.0040.00416.30
7.3.290.0070.00716.38
7.3.280.0070.01216.27
7.3.270.0090.01217.40
7.3.260.0070.01018.24
7.3.250.0070.01016.25
7.3.240.0150.00616.21
7.3.230.0130.00316.39
7.3.210.0130.00316.17
7.3.200.0090.00619.39
7.3.190.0140.00316.55
7.3.180.0150.00616.54
7.3.170.0070.01016.29
7.3.160.0110.00616.19
7.2.330.0140.00316.44
7.2.320.0140.00816.24
7.2.310.0100.00716.31
7.2.300.0130.01016.57
7.2.290.0130.00316.38
5.4.230.0100.04112.34
5.4.220.0140.05512.34
5.4.210.0140.04312.34
5.4.200.0140.04212.34
5.4.190.0110.04312.34
5.4.180.0120.04012.33
5.4.170.0160.06512.35
5.4.160.0120.04212.34
5.4.150.0130.04512.34
5.4.140.0120.04312.03
5.4.130.0090.04212.01
5.4.120.0110.04211.97
5.4.110.0210.06111.97
5.4.100.0090.04211.97
5.4.90.0110.04111.96
5.4.80.0140.03811.97
5.4.70.0150.03511.96
5.4.60.0100.04011.96
5.4.50.0100.04111.96
5.4.40.0100.04011.95
5.4.30.0160.05411.95
5.4.20.0100.04111.94
5.4.10.0130.03611.95
5.4.00.0110.03811.44
5.3.280.0120.04212.71
5.3.270.0100.04612.72
5.3.260.0100.04312.72
5.3.250.0180.05512.72
5.3.240.0110.04512.72
5.3.230.0140.04012.71
5.3.220.0140.04012.68
5.3.210.0140.04212.68
5.3.200.0110.04212.68
5.3.190.0120.04212.67
5.3.180.0140.03812.68
5.3.170.0120.04312.67
5.3.160.0090.04312.67
5.3.150.0130.04312.68
5.3.140.0150.03812.66
5.3.130.0100.04512.66
5.3.120.0080.04612.65
5.3.110.0220.06512.66
5.3.100.0120.04212.12
5.3.90.0120.03912.08
5.3.80.0120.04212.08
5.3.70.0190.05712.08
5.3.60.0150.03812.06
5.3.50.0110.04112.00
5.3.40.0110.04012.00
5.3.30.0150.03511.94
5.3.20.0290.05511.72
5.3.10.0130.04011.70
5.3.00.0090.04011.67

preferences:
42.19 ms | 401 KiB | 5 Q