3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f(int $flags){ if($flags & LOCK_SH){ echo "im handling a LOCK_SH request!"; }elseif($flags & LOCK_EX){ echo "im handling a LOCK_EX request!"; }elseif($flags & LOCK_UN){ echo "im handling a LOCK_UN request!"; }else{ echo "didn't understand those flags..."; } } f(LOCK_UN);

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.120.0130.00624.17
8.4.110.0050.00520.57
8.4.100.0120.00917.71
8.4.90.0110.00918.55
8.4.80.0120.00917.70
8.4.70.0080.01022.28
8.4.60.0120.00918.58
8.4.50.0090.00920.56
8.4.40.0070.01119.45
8.4.30.0100.01018.55
8.4.20.0070.01317.96
8.4.10.0040.00421.91
8.3.250.0120.00719.04
8.3.240.0120.00617.12
8.3.230.0130.00616.58
8.3.220.0050.01016.97
8.3.210.0100.00618.25
8.3.200.0040.00416.39
8.3.190.0040.00517.08
8.3.180.0090.00918.20
8.3.170.0090.00016.54
8.3.160.0000.01818.29
8.3.150.0110.00416.99
8.3.140.0090.00916.57
8.3.130.0060.00318.33
8.3.120.0050.00518.93
8.3.110.0050.00520.94
8.3.100.0000.00824.06
8.3.90.0150.00426.77
8.3.80.0140.00323.61
8.3.70.0170.00521.79
8.3.60.0120.00821.81
8.3.50.0140.00322.33
8.3.40.0150.00922.46
8.3.30.0160.00322.63
8.3.20.0160.00224.33
8.3.10.0130.00724.49
8.3.00.0110.00524.99
8.2.290.0130.00620.16
8.2.280.0040.00418.27
8.2.270.0120.00619.74
8.2.260.0000.00816.43
8.2.250.0080.00016.48
8.2.240.0080.00018.61
8.2.230.0000.00922.58
8.2.220.0040.00437.54
8.2.210.0000.01526.77
8.2.200.0060.00623.61
8.2.190.0160.00421.79
8.2.180.0120.00624.91
8.2.170.0100.00822.53
8.2.160.0070.00923.92
8.2.150.0110.00324.82
8.2.140.0100.00524.49
8.2.130.0080.00724.99
8.2.120.0090.00823.20
8.2.110.0090.00723.30
8.2.100.0120.00322.20
8.2.90.0110.00519.52
8.2.80.0130.00619.85
8.2.70.0150.00519.61
8.2.60.0140.00719.62
8.2.50.0150.00419.56
8.2.40.0170.00419.82
8.2.30.0160.00419.64
8.2.20.0130.00419.80
8.2.10.0100.00818.99
8.2.00.0130.00419.12
8.1.330.0090.00921.70
8.1.320.0100.00816.03
8.1.310.0170.00018.24
8.1.300.0100.01018.49
8.1.290.0070.00330.84
8.1.280.0120.00424.91
8.1.270.0110.00624.27
8.1.260.0150.00325.05
8.1.250.0150.00225.63
8.1.240.0090.00822.63
8.1.230.0120.00823.24
8.1.220.0170.00619.57
8.1.210.0130.00720.09
8.1.200.0170.00419.50
8.1.190.0130.00719.78
8.1.180.0160.00319.57
8.1.170.0140.00520.14
8.1.160.0160.00419.42
8.1.150.0120.00719.63
8.1.140.0130.00618.79
8.1.130.0110.00518.64
8.1.120.0100.00518.41
8.1.110.0090.00618.39
8.1.100.0100.00518.41
8.1.90.0110.00518.16
8.1.80.0120.00518.15
8.1.70.0120.00518.23
8.1.60.0120.00518.29
8.1.50.0130.00517.88
8.1.40.0130.00517.93
8.1.30.0130.00517.98
8.1.20.0140.00517.99
8.1.10.0130.00617.86
8.1.00.0130.00517.79
8.0.300.0180.00219.81
8.0.290.0190.00319.25
8.0.280.0180.00319.13
8.0.270.0130.00518.61
8.0.260.0130.00618.11
8.0.250.0130.00517.88
8.0.240.0130.00417.81
8.0.230.0130.00417.73
8.0.220.0100.00617.63
8.0.210.0110.00517.53
8.0.200.0110.00617.63
8.0.190.0120.00517.56
8.0.180.0120.00517.25
8.0.170.0120.00517.26
8.0.160.0130.00517.23
8.0.150.0120.00517.20
8.0.140.0130.00417.19
8.0.130.0120.00517.21
8.0.120.0130.00517.24
8.0.110.0120.00617.22
8.0.100.0130.00517.22
8.0.90.0130.00517.26
8.0.80.0120.00517.30
8.0.70.0130.00417.27
8.0.60.0130.00517.26
8.0.50.0120.00517.28
8.0.30.0130.00517.28
8.0.20.0120.00517.39
8.0.10.0130.00417.37
7.4.330.0110.00417.13
7.4.320.0150.00417.53
7.4.300.0140.00417.35
7.4.290.0140.00517.02
7.4.280.0160.00417.02
7.4.270.0140.00516.99
7.4.260.0150.00417.00
7.4.250.0110.00616.99
7.4.240.0130.00517.00
7.4.230.0130.00517.00
7.4.220.0120.00517.01
7.4.210.0140.00317.00
7.4.200.0120.00517.01
7.4.190.0120.00517.07
7.4.180.0130.00417.08
7.4.160.0140.00417.02
7.4.150.0130.00416.98
7.4.140.0130.00516.92
7.4.130.0120.00516.93
7.4.120.0120.00416.93
7.4.110.0130.00416.96
7.4.100.0120.00516.99
7.4.90.0130.00416.95
7.4.80.0120.00416.96
7.4.70.0110.00516.94
7.4.60.0120.00416.91
7.4.50.0110.00416.91
7.4.40.0110.00416.89
7.4.30.0100.00516.91
7.4.20.0110.00417.00
7.4.10.0110.00516.99
7.4.00.0110.00417.02

preferences:
62.75 ms | 403 KiB | 5 Q