3v4l.org

run code in 300+ PHP versions simultaneously
<?php $status = 0; //if ($status >> 2 & 0x1 == 1) { // $statustext = "Høj temp. alarm"; //} else if ($status >> 1 & 0x1 == 1) { // $statustext = "Lav temp. alarm"; //} else if ($status >> 0 & 0x1 == 1) { // $statustext = "OK"; //} else { // sensor error // $statustext = "Føler fejl"; //} if (($status & 0x1) == 0) { $statustext = "Føler fejl"; } else if (($status >> 3 & 0x1) > 0) { $statustext = "Føler batteri lavt niveau"; } else if (($status >> 2 & 0x1) > 0) { $statustext = "Høj temp. alarm"; } else if (($status >> 1 & 0x1) > 0) { $statustext = "Lav temp. alarm"; } else { // sensor OK $statustext = "OK"; } echo $statustext;

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.0100.01016.48
8.3.50.0060.00916.48
8.3.40.0120.00318.59
8.3.30.0100.00718.51
8.3.20.0040.00420.35
8.3.10.0000.00823.66
8.3.00.0000.00723.52
8.2.180.0120.00616.63
8.2.170.0110.01122.96
8.2.160.0030.01020.31
8.2.150.0070.00025.66
8.2.140.0090.00024.66
8.2.130.0050.00220.47
8.2.120.0000.00726.35
8.2.110.0060.00320.99
8.2.100.0080.00417.72
8.2.90.0090.00018.22
8.2.80.0040.00418.03
8.2.70.0090.00017.80
8.2.60.0050.00317.97
8.2.50.0050.00318.10
8.2.40.0000.00822.33
8.2.30.0000.00721.09
8.2.20.0040.00418.06
8.2.10.0030.00618.05
8.2.00.0050.00218.05
8.1.280.0090.01225.92
8.1.270.0000.00722.14
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00620.58
8.1.230.0000.01221.00
8.1.220.0050.00317.75
8.1.210.0050.00318.77
8.1.200.0000.00917.38
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00818.82
8.1.160.0040.00418.89
8.1.150.0000.00818.88
8.1.140.0040.00417.65
8.1.130.0050.00318.94
8.1.120.0000.00817.54
8.1.110.0070.00017.42
8.1.100.0040.00417.39
8.1.90.0000.00817.35
8.1.80.0000.00817.46
8.1.70.0040.00417.46
8.1.60.0000.00817.59
8.1.50.0030.00517.36
8.1.40.0050.00217.49
8.1.30.0000.00817.54
8.1.20.0030.00617.57
8.1.10.0040.00417.54
8.1.00.0060.00317.43
8.0.300.0020.00520.02
8.0.290.0060.00316.75
8.0.280.0030.00318.32
8.0.270.0000.00717.25
8.0.260.0000.00616.70
8.0.250.0030.00316.92
8.0.240.0000.00716.89
8.0.230.0000.00716.90
8.0.220.0070.00016.80
8.0.210.0040.00416.83
8.0.200.0000.00616.89
8.0.190.0040.00416.72
8.0.180.0000.00716.74
8.0.170.0000.00716.82
8.0.160.0090.00016.78
8.0.150.0030.00316.74
8.0.140.0040.00416.84
8.0.130.0060.00013.19
8.0.120.0000.00816.81
8.0.110.0000.00716.91
8.0.100.0040.00416.91
8.0.90.0000.00716.79
8.0.80.0070.00716.87
8.0.70.0070.00016.89
8.0.60.0000.00716.86
8.0.50.0040.00416.78
8.0.30.0130.00417.07
8.0.20.0100.00817.40
8.0.10.0040.00416.86
8.0.00.0140.00416.45
7.4.330.0000.00516.74
7.4.320.0060.00016.61
7.4.300.0000.00716.42
7.4.290.0000.00616.35
7.4.280.0060.00316.55
7.4.270.0030.00316.64
7.4.260.0000.00816.52
7.4.250.0030.00516.57
7.4.240.0050.00216.52
7.4.230.0080.00016.32
7.4.220.0140.01016.34
7.4.210.0060.01316.45
7.4.200.0040.00416.63
7.4.160.0140.00216.64
7.4.150.0140.00317.40
7.4.140.0090.01317.86
7.4.130.0100.01416.63
7.4.120.0110.00716.54
7.4.110.0110.00616.64
7.4.100.0120.00416.44
7.4.90.0140.00416.46
7.4.80.0060.01019.39
7.4.70.0070.01116.64
7.4.60.0070.00716.43
7.4.50.0030.01416.48
7.4.40.0160.00016.45
7.4.30.0110.00516.46
7.4.00.0090.00814.97
7.3.330.0030.00313.17
7.3.320.0050.00013.13
7.3.310.0000.00716.21
7.3.300.0030.00316.25
7.3.290.0080.00716.24
7.3.280.0080.00916.27
7.3.270.0070.01117.40
7.3.260.0170.00516.48
7.3.250.0060.01316.28
7.3.240.0100.00816.59
7.3.230.0080.01216.34
7.3.210.0030.01416.53
7.3.200.0060.01416.60
7.3.190.0120.00916.27
7.3.180.0150.00316.19
7.3.170.0060.01016.20
7.3.160.0080.00816.36
7.3.120.0070.01015.03
7.3.110.0120.00414.61
7.3.100.0060.00914.50
7.3.90.0050.00514.88
7.3.80.0090.00614.78
7.3.70.0000.01614.84
7.3.60.0030.01414.70
7.3.50.0100.00314.46
7.3.40.0090.00914.94
7.3.30.0030.01014.82
7.3.20.0150.00316.62
7.3.10.0090.00616.68
7.3.00.0060.00716.49
7.2.330.0030.01616.30
7.2.320.0080.00816.40
7.2.310.0000.01716.46
7.2.300.0100.00716.75
7.2.290.0070.01316.70
7.2.250.0000.01915.02
7.2.240.0070.01014.80
7.2.230.0030.01215.09
7.2.220.0050.00814.85
7.2.210.0100.00714.63
7.2.200.0040.00714.90
7.2.190.0040.01115.10
7.2.180.0060.00915.10
7.2.170.0100.00715.10
7.2.130.0100.00716.82
7.2.120.0080.00516.70
7.2.110.0140.00416.82
7.2.100.0070.00716.81
7.2.90.0030.00716.72
7.2.80.0120.00916.81
7.2.70.0080.00817.08
7.2.60.0100.00616.79
7.2.50.0060.01216.75
7.2.40.0100.00716.91
7.2.30.0080.00816.68
7.2.20.0140.00016.94
7.2.10.0000.01516.69
7.2.00.0200.00016.90
7.1.330.0030.01015.64
7.1.320.0040.00715.90
7.1.310.0030.01015.46
7.1.300.0030.01315.71
7.1.290.0030.00715.93
7.1.280.0000.01015.63
7.1.270.0070.01015.76
7.1.260.0140.00015.72
7.1.250.0040.00815.63
7.1.240.0030.01015.84
7.1.230.0040.01115.65
7.1.220.0070.00415.70
7.1.210.0040.01115.43
7.1.200.0080.00615.50
7.1.190.0000.00815.62
7.1.180.0060.00315.83
7.1.170.0100.00715.56
7.1.160.0030.00915.73
7.1.150.0070.00715.62
7.1.140.0060.00915.48
7.1.130.0070.00715.55
7.1.120.0030.01015.49
7.1.110.0030.01116.97
7.1.100.0090.00716.91
7.1.90.0080.00616.69
7.1.80.0070.00717.08
7.1.70.0050.00716.48
7.1.60.0120.01325.31
7.1.50.0160.00725.17
7.1.40.0080.01625.08
7.1.30.0140.01124.87
7.1.20.0150.00525.14
7.1.10.0080.00716.23
7.1.00.0060.00916.15
7.0.330.0050.00314.91
7.0.320.0100.00715.22
7.0.310.0090.00915.18
7.0.300.0040.00415.27
7.0.290.0030.00515.12
7.0.280.0060.00315.39
7.0.270.0030.00615.26
7.0.260.0070.00714.92
7.0.250.0050.00916.54
7.0.240.0030.01016.54
7.0.230.0080.00716.47
7.0.220.0090.00516.18
7.0.210.0100.00515.83
7.0.200.0090.00715.96
7.0.190.0080.00615.70
7.0.180.0050.00915.79
7.0.170.0040.00715.74
7.0.160.0020.01215.83
7.0.150.0070.00815.77
7.0.140.0060.01115.71
7.0.130.0030.01215.88
7.0.120.0100.00715.87
7.0.110.0110.00615.70
7.0.100.0080.01115.69
7.0.90.0080.01015.69
7.0.80.0130.00515.85
7.0.70.0070.01015.83
7.0.60.0070.00715.55
7.0.50.0100.00615.82
7.0.40.0040.01114.84
7.0.30.0020.01114.72
7.0.20.0080.01014.88
7.0.10.0060.01114.78
7.0.00.0100.00714.92
5.6.380.0090.00614.27

preferences:
47.9 ms | 400 KiB | 5 Q