3v4l.org

run code in 300+ PHP versions simultaneously
<?php // rsrq(rb,rsrp,rssi) = 10*log10(rb*10**(rsrp/10)/10**(rssi/10)); function calc ($data) { $pattern = "Freq:([ ]+)(?P<Freq>[0-9\-]+)\n"; $pattern .= "Band:([ ]+)(?P<Band>[0-9\-]+)\n"; $pattern .= "CellId:([ ]+)(?P<CellId>[0-9\-]+)\n"; $pattern .= "RSRP:([ ]+)(?P<RSRP>[0-9\-]+)\n"; $pattern .= "RSRQ:([ ]+)(?P<RSRQ>[0-9\-]+)\n"; $pattern .= "RSSI:([ ]+)(?P<RSSI>[0-9\-]+)"; preg_match('/'.$pattern.'/i', $data, $matches); if (!empty($matches)) { $rb = 50; // lte 800 if ($matches['Band'] == 3) { $rb = 100; // lte 1800 } echo rsrq($rb, $matches['RSRP'], $matches['RSSI']); } } function rsrq ($rb, $rsrp, $rssi) { return 10*log10($rb*10**($rsrp/10)/10**($rssi/10)); } calc(">> Current-LTE-Config << Acgorder: 03 Band: 3FFFFFFF Roam: 3 Srvdomain: 1 LTEBand: 80044 >> Current-CellInfo << Freq: 18150 Band: 3 CellId: 60 RSRP: -89 RSRQ: -10 RSSI: -62");

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.0070.01417.13
8.3.60.0060.01317.38
8.3.50.0120.00621.39
8.3.40.0070.00719.07
8.3.30.0090.00619.30
8.3.20.0040.00419.34
8.3.10.0050.00320.26
8.3.00.0050.00318.18
8.2.180.0140.00025.92
8.2.170.0070.00719.37
8.2.160.0150.00022.96
8.2.150.0050.00325.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00021.35
8.2.110.0030.00622.48
8.2.100.0060.00618.34
8.2.90.0060.00319.42
8.2.80.0000.00818.00
8.2.70.0040.00418.00
8.2.60.0040.00418.30
8.2.50.0050.00318.13
8.2.40.0060.00320.85
8.2.30.0050.00220.78
8.2.20.0040.00418.03
8.2.10.0040.00418.27
8.2.00.0070.00018.21
8.1.280.0040.01125.92
8.1.270.0080.00024.01
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00422.32
8.1.230.0070.00417.89
8.1.220.0030.00717.89
8.1.210.0030.00518.77
8.1.200.0070.00317.73
8.1.190.0040.00417.72
8.1.180.0050.00318.10
8.1.170.0040.00419.40
8.1.160.0040.00419.28
8.1.150.0000.00719.17
8.1.140.0040.00419.89
8.1.130.0000.00717.85
8.1.120.0050.00317.82
8.1.110.0050.00217.83
8.1.100.0080.00017.91
8.1.90.0050.00317.85
8.1.80.0050.00317.86
8.1.70.0030.00317.69
8.1.60.0040.00417.99
8.1.50.0000.00917.94
8.1.40.0040.00417.97
8.1.30.0080.00018.05
8.1.20.0030.00518.05
8.1.10.0000.00817.82
8.1.00.0040.00417.92
8.0.300.0040.00418.77
8.0.290.0040.00417.25
8.0.280.0000.00718.80
8.0.270.0000.00817.46
8.0.260.0070.00017.28
8.0.250.0030.00317.36
8.0.240.0040.00417.33
8.0.230.0070.00017.28
8.0.220.0070.00017.36
8.0.210.0000.00717.31
8.0.200.0090.00017.35
8.0.190.0020.00517.41
8.0.180.0030.00617.36
8.0.170.0040.00417.29
8.0.160.0000.00817.18
8.0.150.0040.00417.24
8.0.140.0040.00417.28
8.0.130.0000.00813.70
8.0.120.0000.00817.23
8.0.110.0040.00417.35
8.0.100.0000.00717.33
8.0.90.0020.00517.22
8.0.80.0070.01117.26
8.0.70.0050.00317.33
8.0.60.0080.00017.15
8.0.50.0000.00717.15
8.0.30.0130.00517.50
8.0.20.0090.01017.54
8.0.10.0040.00417.32
8.0.00.0110.00817.03
7.4.330.0030.00315.23
7.4.320.0040.00417.05
7.4.300.0060.00016.99
7.4.290.0030.00317.01
7.4.280.0040.00416.99
7.4.270.0070.00017.09
7.4.260.0050.00216.91
7.4.250.0040.00416.96
7.4.240.0030.00516.98
7.4.230.0040.00417.18
7.4.220.0150.00317.05
7.4.210.0060.00816.99
7.4.200.0030.00316.95
7.4.160.0110.00516.94
7.4.150.0110.01117.40
7.4.140.0140.00317.86
7.4.130.0070.01016.92
7.4.120.0100.01016.93
7.4.110.0150.00317.00
7.4.100.0090.01216.97
7.4.90.0070.01016.94
7.4.80.0090.01419.39
7.4.70.0100.00716.91
7.4.60.0110.00616.94
7.4.50.0030.01217.17
7.4.40.0100.01016.98
7.4.30.0110.00616.80
7.4.00.0040.01315.53
7.3.330.0000.00613.78
7.3.320.0060.00013.76
7.3.310.0070.00016.80
7.3.300.0070.00016.86
7.3.290.0030.00316.74
7.3.280.0060.00916.70
7.3.270.0130.00617.40
7.3.260.0040.01416.86
7.3.250.0110.00716.90
7.3.240.0080.01016.77
7.3.230.0090.00917.09
7.3.210.0030.01316.87
7.3.200.0060.01019.39
7.3.190.0070.01017.02
7.3.180.0130.00716.61
7.3.170.0160.00016.68
7.3.160.0060.01016.83
7.3.120.0090.00615.63
7.3.110.0070.01115.07
7.3.100.0000.01415.71
7.3.90.0090.00615.38
7.3.80.0030.00715.56
7.3.70.0070.00415.44
7.3.60.0110.00415.48
7.3.50.0030.00615.55
7.3.40.0070.00715.45
7.3.30.0040.01115.68
7.3.20.0060.00917.50
7.3.10.0000.01417.16
7.3.00.0100.00317.28
7.2.330.0000.01817.22
7.2.320.0110.00717.14
7.2.310.0090.01017.15
7.2.300.0110.00917.06
7.2.290.0110.00716.92
7.2.250.0060.00915.36
7.2.240.0070.01415.56
7.2.230.0110.00415.60
7.2.220.0070.01115.76
7.2.210.0040.00715.39
7.2.200.0060.00915.40
7.2.190.0030.00915.73
7.2.180.0030.00615.68
7.2.170.0090.00315.51
7.2.160.0090.00915.33
7.2.150.0130.00017.55
7.2.140.0000.01717.70
7.2.130.0060.00917.61
7.2.120.0100.00717.59
7.2.110.0040.01117.49
7.2.100.0120.00617.59
7.2.90.0090.00617.64
7.2.80.0070.00717.63
7.2.70.0040.01417.32
7.2.60.0080.00817.56
7.2.50.0160.00317.59
7.2.40.0070.00717.26
7.2.30.0040.00817.62
7.2.20.0030.01017.79
7.2.10.0060.00917.37
7.2.00.0090.00617.56
7.1.330.0030.01316.21
7.1.320.0070.01016.21
7.1.310.0050.00516.67
7.1.300.0110.00716.27
7.1.290.0130.00016.24
7.1.280.0040.00816.53
7.1.270.0030.01016.10
7.1.260.0060.00816.31
7.1.250.0070.00716.29
7.1.240.0000.01516.40
7.1.230.0060.00616.59
7.1.220.0030.01016.45
7.1.210.0050.00516.08
7.1.200.0050.00816.09
7.1.190.0070.01116.17
7.1.180.0130.00316.57
7.1.170.0090.00616.50
7.1.160.0000.01416.27
7.1.150.0070.00716.69
7.1.140.0060.00616.29
7.1.130.0030.01216.64
7.1.120.0080.00616.45
7.1.110.0120.00416.28
7.1.100.0040.00916.23
7.1.90.0070.00716.73
7.1.80.0070.01016.38
7.1.70.0050.00617.21
7.1.60.0020.01817.92
7.1.50.0000.01316.46
7.1.40.0080.00416.51
7.1.30.0060.00616.28
7.1.20.0030.00916.42
7.1.10.0070.00716.49
7.1.00.0070.04219.63
7.0.330.0040.01116.20
7.0.320.0070.00715.81
7.0.310.0110.00416.05
7.0.300.0080.00816.21
7.0.290.0130.00316.21
7.0.280.0060.01016.07
7.0.270.0000.01015.98
7.0.260.0030.01016.14
7.0.250.0040.01115.60
7.0.240.0070.00716.25
7.0.230.0090.00415.90
7.0.220.0030.01216.24
7.0.210.0100.00716.14
7.0.200.0030.01016.62
7.0.190.0110.00415.95
7.0.180.0070.00716.06
7.0.170.0070.01015.96
7.0.160.0080.00816.07
7.0.150.0100.00716.10
7.0.140.0060.01116.00
7.0.130.0040.00716.14
7.0.120.0030.01016.08
7.0.110.0060.00315.94
7.0.100.0030.00616.00
7.0.90.0100.00316.17
7.0.80.0070.00416.19
7.0.70.0070.01016.18
7.0.60.0140.04318.30
7.0.50.0130.03118.25
7.0.40.0150.03017.37
7.0.30.0110.03417.41
7.0.20.0140.03417.42
7.0.10.0130.03317.34
7.0.00.0150.03017.38
5.6.400.0140.00315.03
5.6.390.0070.01115.19
5.6.380.0030.01215.21
5.6.370.0030.01014.99
5.6.360.0020.01115.19
5.6.350.0090.00615.13
5.6.340.0110.00414.81
5.6.330.0100.00314.95
5.6.320.0000.01415.11
5.6.310.0100.00314.82
5.6.300.0030.01014.98
5.6.290.0120.00614.59
5.6.280.0050.04117.93
5.6.270.0030.01214.78
5.6.260.0070.00315.03
5.6.250.0070.00715.09
5.6.240.0040.01115.11
5.6.230.0040.00814.96
5.6.220.0000.01815.02
5.6.210.0120.04217.86
5.6.200.0070.03718.09
5.6.190.0150.03218.11
5.6.180.0100.03718.10
5.6.170.0180.03218.11
5.6.160.0150.03018.02
5.6.150.0170.03618.06
5.6.140.0110.03517.97
5.6.130.0100.03618.16
5.6.120.0120.03318.15
5.6.110.0070.04118.08
5.6.100.0080.03518.10
5.6.90.0100.03718.07
5.6.80.0100.03517.67
5.6.70.0080.03417.72
5.6.60.0130.03117.63
5.6.50.0120.03017.64
5.6.40.0110.03317.58
5.6.30.0160.02817.60
5.6.20.0150.02817.78
5.6.10.0050.03817.60
5.6.00.0080.03617.74
5.5.380.0090.00914.20
5.5.370.0140.00514.20
5.5.360.0110.00314.20
5.5.350.0160.03817.31
5.5.340.0210.02617.53
5.5.330.0170.03217.52
5.5.320.0100.03217.61
5.5.310.0190.02717.52
5.5.300.0140.02917.53
5.5.290.0110.03717.50
5.5.280.0150.03417.50
5.5.270.0150.03217.56
5.5.260.0170.02817.63
5.5.250.0170.02717.43
5.5.240.0120.04017.23
5.5.230.0120.04717.14
5.5.220.0110.03317.21
5.5.210.0150.02717.23
5.5.200.0120.03517.29
5.5.190.0130.03717.22
5.5.180.0130.03217.19
5.5.170.0110.00414.20
5.5.160.0120.03217.21
5.5.150.0090.03217.21
5.5.140.0140.03017.20
5.5.130.0080.03317.29
5.5.120.0070.03517.18
5.5.110.0130.02817.24
5.5.100.0120.03117.12
5.5.90.0070.03317.18
5.5.80.0110.03117.23
5.5.70.0090.03417.22
5.5.60.0150.02217.16
5.5.50.0080.03317.17
5.5.40.0150.02517.10
5.5.30.0130.03317.11
5.5.20.0120.03217.17
5.5.10.0070.03517.13
5.5.00.0130.02817.14

preferences:
57.79 ms | 401 KiB | 5 Q