3v4l.org

run code in 300+ PHP versions simultaneously
<?php class StreamTest { function stream_open($path, $mode, $options, &$opened_path) { return true; } function stream_close() { return ; } function stream_lock($mode) { printf( "0x%x\n", $mode ) ; return ; } } stream_register_wrapper("streamtest", "StreamTest"); $handle = fopen( 'streamtest://test', "r" ) ; flock( $handle, LOCK_EX ) ; flock( $handle, LOCK_UN ) ; fclose($handle) ;

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.70.0100.00716.63
8.3.60.0150.00318.27
8.3.50.0100.00716.16
8.3.40.0070.00718.80
8.3.30.0070.00718.76
8.3.20.0070.00720.39
8.3.10.0000.00820.69
8.3.00.0080.00022.01
8.2.190.0070.00716.58
8.2.180.0110.00418.27
8.2.170.0060.01122.96
8.2.160.0130.00619.22
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0070.01026.16
8.2.120.0040.00420.47
8.2.110.0060.00321.05
8.2.100.0100.00317.72
8.2.90.0030.00520.41
8.2.80.0070.00019.34
8.2.70.0040.00417.80
8.2.60.0030.00718.03
8.2.50.0040.00418.10
8.2.40.0000.00820.53
8.2.30.0000.00719.07
8.2.20.0030.00617.88
8.2.10.0080.00018.00
8.2.00.0000.00817.87
8.1.280.0150.00325.92
8.1.270.0040.00422.05
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0080.00320.56
8.1.230.0040.00720.91
8.1.220.0050.00317.74
8.1.210.0020.00818.98
8.1.200.0030.00517.22
8.1.190.0000.00917.22
8.1.180.0060.00318.10
8.1.170.0030.00518.75
8.1.160.0000.00718.78
8.1.150.0040.00421.96
8.1.140.0080.00019.57
8.1.130.0030.00318.67
8.1.120.0040.00417.45
8.1.110.0030.00517.41
8.1.100.0040.00417.27
8.1.90.0000.00817.30
8.1.80.0000.00717.22
8.1.70.0000.00717.43
8.1.60.0000.00917.50
8.1.50.0000.00817.53
8.1.40.0000.00717.46
8.1.30.0040.00417.58
8.1.20.0040.00417.58
8.1.10.0050.00517.46
8.1.00.0040.00417.39
8.0.300.0070.00019.98
8.0.290.0070.00316.75
8.0.280.0040.00418.43
8.0.270.0070.00017.31
8.0.260.0030.00318.89
8.0.250.0000.00816.95
8.0.240.0050.00316.95
8.0.230.0040.00416.97
8.0.220.0090.00016.86
8.0.210.0030.00316.79
8.0.200.0000.00716.86
8.0.190.0030.00616.85
8.0.180.0050.00316.80
8.0.170.0050.00316.85
8.0.160.0030.00316.88
8.0.150.0090.00316.73
8.0.140.0000.00716.76
8.0.130.0030.00313.33
8.0.120.0000.00916.92
8.0.110.0050.00316.88
8.0.100.0030.00416.80
8.0.90.0040.00416.94
8.0.80.0100.01016.88
8.0.70.0000.00716.83
8.0.60.0000.00716.69
8.0.50.0050.00216.91
8.0.30.0090.00916.90
8.0.20.0090.01017.40
8.0.10.0040.00416.82
8.0.00.0090.01116.59
7.4.330.0050.00015.55
7.4.320.0000.00716.32
7.4.300.0030.00316.42
7.4.290.0080.00016.60
7.4.280.0040.00416.47
7.4.270.0000.00816.40
7.4.260.0030.00316.60
7.4.250.0000.00816.39
7.4.240.0000.00716.41
7.4.230.0040.00416.66
7.4.220.0120.01316.70
7.4.210.0070.00816.37
7.4.200.0000.00716.48
7.4.160.0090.01116.47
7.4.150.0160.00317.40
7.4.140.0090.00817.86
7.4.130.0100.00716.52
7.4.120.0070.01116.42
7.4.110.0040.01216.54
7.4.100.0090.01216.39
7.4.90.0100.00716.52
7.4.80.0140.00819.39
7.4.70.0090.01016.56
7.4.60.0100.00716.67
7.4.50.0000.01716.50
7.4.40.0110.00716.49
7.4.30.0120.00416.52
7.4.00.0030.01415.00
7.3.330.0070.00013.20
7.3.320.0060.00013.27
7.3.310.0000.00816.24
7.3.300.0030.00316.25
7.3.290.0110.00516.28
7.3.280.0090.00716.27
7.3.270.0160.00417.40
7.3.260.0070.01016.41
7.3.250.0090.01416.47
7.3.240.0080.01016.29
7.3.230.0100.00716.46
7.3.210.0070.01116.42
7.3.200.0090.00616.55
7.3.190.0070.01016.41
7.3.180.0060.01016.38
7.3.170.0060.00916.18
7.3.160.0080.00916.16
7.2.330.0070.01116.36
7.2.320.0130.00416.67
7.2.310.0170.00016.38
7.2.300.0090.00916.59
7.2.290.0050.01016.68
7.2.60.0070.00716.80
7.1.200.0110.01415.64
7.1.80.0040.01117.98
7.1.70.0060.00616.96
7.1.60.0170.00735.09
7.1.50.0120.01234.85
7.1.40.0110.01534.36
7.1.30.0210.00334.60
7.1.20.0240.00734.55
7.1.10.0060.00616.76
7.1.00.0120.00016.78
7.0.200.0000.01116.67
7.0.190.0040.00716.34
7.0.180.0090.00316.09
7.0.170.0080.00316.22
7.0.160.0110.00315.94
7.0.150.0000.01116.09
7.0.140.0040.00816.16
7.0.130.0030.00816.34
7.0.120.0000.01116.57
7.0.110.0080.00416.21
7.0.100.0030.01016.14
7.0.90.0090.00316.16
7.0.80.0000.01216.44
7.0.70.0000.01216.16
7.0.60.0030.01016.14
7.0.50.0080.00416.41
7.0.40.0000.01216.23
7.0.30.0000.01216.39
7.0.20.0070.00516.35
7.0.10.0060.00616.38
7.0.00.0110.00316.52

preferences:
71.52 ms | 401 KiB | 5 Q