3v4l.org

run code in 300+ PHP versions simultaneously
<?php class StreamWrapper { public function stream_open( string $path, string $mode, int $options, ?string &$opened_path = null ): bool { var_dump(__METHOD__, func_get_args()); return true; } public function stream_write(string $data) { var_dump(__METHOD__, func_get_args()); return strlen($data); } public function stream_close(): void { var_dump(__METHOD__); } } stream_wrapper_register('test', StreamWrapper::class); $fp = fopen('test://foo', 'w'); fwrite($fp, str_repeat('a', 9 * 1024)); fclose($fp);

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.0060.01616.75
8.3.50.0120.00917.99
8.3.40.0070.01418.65
8.3.30.0120.00318.67
8.3.20.0070.00024.18
8.3.10.0030.00524.66
8.3.00.0040.00426.16
8.2.180.0110.00725.92
8.2.170.0070.01418.84
8.2.160.0070.01422.96
8.2.150.0000.00825.66
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0000.00821.03
8.2.110.0080.00420.71
8.2.100.0090.00317.91
8.2.90.0060.00319.52
8.2.80.0080.00019.16
8.2.70.0030.00617.92
8.2.60.0090.00018.09
8.2.50.0000.00818.10
8.2.40.0000.00821.07
8.2.30.0070.00019.19
8.2.20.0060.00318.12
8.2.10.0050.00319.52
8.2.00.0040.00419.24
8.1.280.0040.01125.92
8.1.270.0030.00723.76
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00322.03
8.1.230.0090.00320.93
8.1.220.0050.00317.76
8.1.210.0080.00019.89
8.1.200.0000.00917.35
8.1.190.0030.00517.22
8.1.180.0040.00418.10
8.1.170.0000.00818.53
8.1.160.0070.00018.87
8.1.150.0040.00418.93
8.1.140.0080.00019.07
8.1.130.0030.00320.31
8.1.120.0000.00717.47
8.1.110.0100.00017.37
8.1.100.0080.00017.49
8.1.90.0040.00417.40
8.1.80.0030.00717.47
8.1.70.0000.00717.38
8.1.60.0030.00617.64
8.1.50.0000.00817.59
8.1.40.0090.00017.59
8.1.30.0000.00817.61
8.1.20.0040.00417.56
8.1.10.0080.00517.52
8.1.00.0030.00717.55
8.0.300.0000.00720.13
8.0.290.0030.00517.00
8.0.280.0030.00318.55
8.0.270.0000.00716.95
8.0.260.0000.00618.63
8.0.250.0000.00716.98
8.0.240.0000.00716.95
8.0.230.0030.00316.96
8.0.220.0070.00016.88
8.0.210.0050.00217.01
8.0.200.0030.00317.04
8.0.190.0050.00317.07
8.0.180.0070.00316.93
8.0.170.0000.00916.90
8.0.160.0040.00416.98
8.0.150.0070.00016.82
8.0.140.0040.00416.94
8.0.130.0030.00313.51
8.0.120.0060.00317.01
8.0.110.0040.00416.86
8.0.100.0040.00416.95
8.0.90.0070.00016.90
8.0.80.0130.00317.01
8.0.70.0140.00317.02
8.0.60.0080.00816.79
8.0.50.0140.00316.81
8.0.30.0070.00716.95
8.0.20.0110.00316.90
8.0.10.0110.00416.93
8.0.00.0090.00917.07
7.4.330.0000.00516.79
7.4.320.0030.00316.60
7.4.300.0000.00616.63
7.4.290.0080.00016.57
7.4.280.0070.00016.63
7.4.270.0070.00016.69
7.4.260.0000.00513.32
7.4.250.0000.00716.40
7.4.240.0040.00416.55
7.4.230.0040.00416.68
7.4.220.0040.00416.58
7.4.210.0000.01416.43
7.4.200.0060.00916.68
7.4.190.0040.01116.51
7.4.180.0100.00616.54
7.4.160.0030.01116.67
7.4.150.0110.00316.64
7.4.140.0040.01116.43
7.4.130.0120.00316.70
7.4.120.0060.00916.63
7.4.110.0150.00016.50
7.4.100.0050.01016.64
7.4.90.0040.01216.56
7.4.80.0130.00316.46
7.4.70.0100.00716.54
7.4.60.0040.01316.52
7.4.50.0060.01016.44
7.4.40.0150.00216.43
7.4.30.0050.01316.46
7.4.20.0070.01016.49
7.4.10.0140.00216.57
7.4.00.0070.01016.65
7.3.330.0070.00016.40
7.3.320.0030.00313.40
7.3.310.0000.00716.43
7.3.300.0000.00716.44
7.3.290.0090.00916.37
7.3.280.0170.00716.32
7.3.270.0170.00616.38
7.3.260.0100.00616.33
7.3.250.0040.01116.39
7.3.240.0100.00816.32
7.3.230.0000.01816.38
7.3.220.0040.01616.20
7.3.210.0110.00416.33
7.3.200.0070.01116.27
7.3.190.0000.01616.22
7.3.180.0150.00516.25
7.3.170.0090.00916.25
7.3.160.0070.00716.27
7.3.150.0080.01216.24
7.3.140.0060.00916.22
7.3.130.0100.00516.20
7.3.120.0090.00616.30
7.3.110.0090.00716.09
7.3.100.0110.00516.17
7.3.90.0070.00716.49
7.3.80.0070.01016.22
7.3.70.0120.00316.36
7.3.60.0070.00916.24
7.3.50.0030.01016.34
7.3.40.0040.01116.00
7.3.30.0060.00916.35
7.3.20.0090.00916.12
7.3.10.0050.01016.29
7.3.00.0100.01016.33

preferences:
69.37 ms | 400 KiB | 5 Q