3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php class testStreamWrapper { function stream_lock($operation) { var_dump($operation); return true; } function stream_open($path, $mode, $options, $opened_path) { return true; } } stream_wrapper_register('test', 'TestStreamWrapper'); $fp = fopen('test://waa', 'w+'); flock($fp, LOCK_SH); flock($fp, LOCK_EX); flock($fp, LOCK_UN); flock($fp, LOCK_SH | LOCK_NB); flock($fp, LOCK_EX | LOCK_NB);

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)
5.4.340.0030.07019.11
5.4.320.0030.07319.21
5.4.310.0000.06718.91
5.4.300.0070.06018.98
5.4.290.0070.05719.31
5.4.280.0000.07719.19
5.4.270.0030.03718.98
5.4.260.0030.03718.85
5.4.250.0030.05019.31
5.4.240.0000.06319.19
5.4.230.0000.06319.06
5.4.220.0070.07719.19
5.4.210.0100.06319.21
5.4.200.0000.05019.13
5.4.190.0030.06719.21
5.4.180.0030.04719.04
5.4.170.0170.04319.21
5.4.160.0030.07019.13
5.4.150.0070.07719.04
5.4.140.0030.05016.29
5.4.130.0030.05716.50
5.4.120.0030.05316.50
5.4.110.0000.03716.56
5.4.100.0030.03716.37
5.4.90.0000.04016.19
5.4.80.0070.03016.24
5.4.70.0030.03316.44
5.4.60.0000.04016.16
5.4.50.0030.03016.51
5.4.40.0000.03716.43
5.4.30.0000.03316.13
5.4.20.0000.03316.35
5.4.10.0000.03716.42
5.4.00.0000.03715.95
5.3.290.0000.05314.50
5.3.280.0000.07014.45
5.3.270.0030.04014.46
5.3.260.0000.05014.65
5.3.250.0030.06314.54
5.3.240.0030.07714.66
5.3.230.0030.08014.55
5.3.220.0000.08014.41
5.3.210.0000.06014.48
5.3.200.0000.03714.43
5.3.190.0000.03714.51
5.3.180.0000.04314.47
5.3.170.0000.03714.52
5.3.160.0000.04014.39
5.3.150.0000.04014.39
5.3.140.0000.03714.54
5.3.130.0000.03714.42
5.3.120.0030.03314.57
5.3.110.0000.04314.39
5.3.100.0030.03314.09
5.3.90.0000.03313.97
5.3.80.0000.04013.81
5.3.70.0030.03313.85
5.3.60.0000.03313.88
5.3.50.0030.03713.90
5.3.40.0000.04013.82
5.3.30.0030.04013.81
5.3.20.0030.03313.73
5.3.10.0030.03713.48
5.3.00.0030.03013.58
5.2.170.0030.03012.52
5.2.160.0030.03012.52
5.2.150.0000.03012.52
5.2.140.0030.02712.52
5.2.130.0030.02712.52
5.2.120.0030.02712.52
5.2.110.0000.02712.52
5.2.100.0030.03012.52
5.2.90.0000.02712.52
5.2.80.0000.03012.52
5.2.70.0000.03012.52
5.2.60.0030.03012.52
5.2.50.0070.02312.52
5.2.40.0000.03012.52
5.2.30.0000.03012.52
5.2.20.0000.02712.52
5.2.10.0000.02712.52
5.2.00.0000.02712.52
5.1.60.0030.02312.52
5.1.50.0000.02312.52
5.1.40.0000.02312.52
5.1.30.0000.02712.52
5.1.20.0000.02712.52
5.1.10.0000.02312.52
5.1.00.0030.02712.52
5.0.50.0030.02012.52
5.0.40.0000.02012.52
5.0.30.0030.03012.52
5.0.20.0000.03312.52
5.0.10.0030.04312.52
5.0.00.0070.05312.52
4.4.90.0000.01312.52
4.4.80.0000.01312.52
4.4.70.0030.01312.52
4.4.60.0000.01312.52
4.4.50.0000.01712.52
4.4.40.0000.02312.52
4.4.30.0000.01712.52
4.4.20.0070.01012.52
4.4.10.0030.01312.52
4.4.00.0030.02312.52
4.3.110.0000.01712.52
4.3.100.0030.02012.52
4.3.90.0030.02012.52
4.3.80.0000.05312.52
4.3.70.0030.03312.52
4.3.60.0030.04012.52
4.3.50.0030.01312.52
4.3.40.0000.03012.52
4.3.30.0000.03312.52
4.3.20.0030.02712.52
4.3.10.0030.02712.52
4.3.00.0000.03012.52

preferences:
151.95 ms | 1394 KiB | 7 Q