3v4l.org

run code in 300+ PHP versions simultaneously
<?php function silence(callable $cb, ...$args) { $previous = error_reporting(0); $ret = $cb(...$args); error_reporting($previous); return $ret; } $fp = silence(fn () => fopen("foo.txt", 4096));

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.0110.00918.02
8.4.120.0070.01222.15
8.4.110.0170.00322.64
8.4.100.0110.01117.83
8.4.90.0120.00818.38
8.4.80.0140.00718.87
8.4.70.0170.00517.93
8.4.60.0100.01120.41
8.4.50.0090.01118.80
8.4.40.0100.01017.82
8.4.30.0140.00720.40
8.4.20.0100.01017.95
8.4.10.0090.00621.52
8.3.260.0110.00916.66
8.3.250.0110.00718.91
8.3.240.0040.00417.10
8.3.230.0100.00516.67
8.3.220.0110.00918.87
8.3.210.0060.00616.87
8.3.200.0060.00316.86
8.3.190.0130.00517.07
8.3.180.0100.00916.68
8.3.170.0100.00617.07
8.3.160.0110.00618.42
8.3.150.0100.01020.89
8.3.140.0040.00418.99
8.3.130.0100.01018.32
8.3.120.0030.00619.04
8.3.110.0050.00520.94
8.3.100.0040.00424.06
8.3.90.0060.01326.77
8.3.80.0040.00416.88
8.3.70.0110.01116.63
8.3.60.0190.00316.49
8.3.50.0130.00724.44
8.3.40.0090.00618.48
8.3.30.0070.00718.57
8.3.20.0060.00324.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0080.00120.31
8.2.280.0080.00918.47
8.2.270.0110.00717.26
8.2.260.0140.00416.64
8.2.250.0050.00317.04
8.2.240.0060.00317.40
8.2.230.0060.00322.58
8.2.220.0080.01237.54
8.2.210.0040.00426.77
8.2.200.0060.00317.13
8.2.190.0070.01316.63
8.2.180.0150.00025.92
8.2.170.0110.01118.78
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00020.82
8.2.110.0000.00922.07
8.2.100.0110.00017.91
8.2.90.0000.00817.84
8.2.80.0000.00818.52
8.2.70.0080.00017.36
8.2.60.0080.00017.63
8.2.50.0080.00018.05
8.2.40.0100.00018.22
8.2.30.0040.00418.04
8.2.20.0040.00417.98
8.2.10.0070.00019.26
8.2.00.0040.00419.16
8.1.330.0130.00621.88
8.1.320.0120.00816.31
8.1.310.0140.00417.02
8.1.300.0000.00818.62
8.1.290.0070.00318.88
8.1.280.0090.00925.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00623.75
8.1.230.0040.00818.90
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0050.00317.65
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0000.00718.94
8.1.150.0080.00018.95
8.1.140.0000.00718.77
8.1.130.0030.00320.14
8.1.120.0000.00717.43
8.1.110.0030.00517.49
8.1.100.0080.00017.38
8.1.90.0040.00417.48
8.1.80.0080.00017.45
8.1.70.0040.00417.45
8.1.60.0000.00817.55
8.1.50.0000.00717.46
8.1.40.0030.00617.50
8.1.30.0080.00017.66
8.1.20.0030.00517.66
8.1.10.0000.00817.42
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0100.00016.75
8.0.280.0000.00718.45
8.0.270.0080.00018.01
8.0.260.0030.00318.33
8.0.250.0000.00717.02
8.0.240.0000.00717.06
8.0.230.0060.00317.01
8.0.220.0040.00417.00
8.0.210.0040.00216.85
8.0.200.0050.00217.00
8.0.190.0000.00817.05
8.0.180.0000.00817.08
8.0.170.0040.00417.05
8.0.160.0020.00516.98
8.0.150.0030.00316.98
8.0.140.0000.00716.98
8.0.130.0060.00013.42
8.0.120.0000.00817.00
8.0.110.0000.00817.02
8.0.100.0040.00416.98
8.0.90.0030.00316.91
8.0.80.0070.00916.93
8.0.70.0000.00716.97
8.0.60.0000.00717.06
8.0.50.0000.01016.89
8.0.30.0030.01317.14
8.0.20.0200.00617.36
8.0.10.0070.00017.05
8.0.00.0070.01416.88
7.4.330.0050.00015.55
7.4.320.0030.00316.63
7.4.300.0080.00016.47
7.4.290.0000.00816.50
7.4.280.0040.00316.60
7.4.270.0060.00016.57
7.4.260.0000.00613.27
7.4.250.0030.00316.36
7.4.240.0060.00316.46
7.4.230.0070.00016.61
7.4.220.0050.00216.46
7.4.210.0100.00616.56
7.4.200.0070.00016.60
7.4.130.0120.00416.48
7.4.120.0120.00416.59
7.4.110.0140.00416.60
7.4.100.0150.00616.43
7.4.90.0130.00616.62
7.4.80.0120.00619.39
7.4.70.0070.01016.52
7.4.60.0070.01116.60
7.4.50.0130.00416.40
7.4.40.0110.00516.16
7.4.30.0130.00416.51
7.4.20.0050.01216.13
7.4.10.0050.01116.52
7.4.00.0000.01816.50
7.3.330.0000.00716.00
7.3.320.0000.00613.20
7.3.310.0000.00816.16
7.3.300.0030.00316.16
7.3.290.0080.00916.17
7.3.260.0150.00916.16
7.3.230.0140.00316.15
7.3.210.0110.00816.34
7.3.200.0060.01216.36
7.3.190.0040.01416.19
7.3.180.0090.01516.20
7.3.170.0100.00716.13
7.3.160.0130.00316.39
7.3.150.0080.01016.35
7.3.140.0130.00316.14
7.3.130.0110.00616.14
7.3.120.0020.01416.31
7.3.110.0070.00916.25
7.3.100.0050.01116.23
7.3.90.0100.00616.21
7.3.80.0040.01116.37
7.3.70.0090.00916.31
7.3.60.0100.00716.19
7.3.50.0040.01216.20
7.3.40.0050.01116.21
7.3.30.0100.00616.22
7.3.20.0470.00416.31
7.3.10.0110.01216.07
7.3.00.0160.00416.14
7.2.330.0030.01416.51
7.2.320.0050.01116.33
7.2.310.0070.01016.45
7.2.300.0080.00816.38
7.2.290.0100.00716.19
7.2.280.0030.01316.14
7.2.270.0080.00816.41
7.2.260.0130.00316.25
7.2.250.0100.00716.29
7.2.240.0130.00316.46
7.2.230.0110.00616.57
7.2.220.0090.00616.43
7.2.210.0040.01216.36
7.2.200.0120.00416.46
7.2.190.0070.01116.20
7.2.180.0040.01416.36
7.2.170.0170.00016.45
7.2.160.0090.00616.41
7.2.150.0140.00816.26
7.2.140.0060.01516.37
7.2.130.0090.00916.46
7.2.120.0030.01316.27
7.2.110.0120.00616.31
7.2.100.0090.01316.54
7.2.90.0130.00916.37
7.2.80.0040.01216.35
7.2.70.0120.00616.53
7.2.60.0110.01116.16
7.2.50.0180.00316.30
7.2.40.0110.01116.52
7.2.30.0180.00416.25
7.2.20.0160.00616.24
7.2.10.0510.00316.39
7.2.00.0150.00416.22

preferences:
134.03 ms | 403 KiB | 5 Q