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: -88 RSRQ: -6 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.00717.00
8.3.60.0100.00618.78
8.3.50.0290.01321.46
8.3.40.0120.00319.44
8.3.30.0070.00719.11
8.3.20.0090.00019.29
8.3.10.0050.00320.40
8.3.00.0050.00320.17
8.2.180.0170.00318.66
8.2.170.0120.00622.96
8.2.160.0150.00319.46
8.2.150.0100.00625.66
8.2.140.0160.00024.66
8.2.130.0050.00221.48
8.2.120.0030.00526.35
8.2.110.0030.00621.23
8.2.100.0040.00718.18
8.2.90.0030.00619.55
8.2.80.0060.00318.13
8.2.70.0090.00018.00
8.2.60.0080.00018.18
8.2.50.0000.00818.13
8.2.40.0080.00420.54
8.2.30.0060.00320.82
8.2.20.0000.00718.02
8.2.10.0000.00718.36
8.2.00.0040.00418.39
8.1.280.0070.00725.92
8.1.270.0000.00823.99
8.1.260.0090.00626.35
8.1.250.0060.00328.09
8.1.240.0030.00622.18
8.1.230.0120.00017.89
8.1.220.0080.00017.91
8.1.210.0000.00818.77
8.1.200.0030.00617.60
8.1.190.0030.00617.60
8.1.180.0050.00318.10
8.1.170.0000.00819.33
8.1.160.0000.00819.29
8.1.150.0000.00819.05
8.1.140.0000.00819.90
8.1.130.0000.00717.98
8.1.120.0040.00417.88
8.1.110.0060.00317.82
8.1.100.0040.00417.93
8.1.90.0080.00017.85
8.1.80.0040.00417.95
8.1.70.0040.00417.81
8.1.60.0030.00518.00
8.1.50.0060.00317.92
8.1.40.0070.00417.96
8.1.30.0030.00517.98
8.1.20.0000.00818.14
8.1.10.0040.00417.92
8.1.00.0000.00917.84
8.0.300.0090.00018.77
8.0.290.0030.00617.25
8.0.280.0000.00718.64
8.0.270.0070.00017.55
8.0.260.0050.00317.46
8.0.250.0000.00817.39
8.0.240.0070.00017.29
8.0.230.0000.00717.33
8.0.220.0000.00817.23
8.0.210.0000.00817.29
8.0.200.0030.00317.38
8.0.190.0000.00717.38
8.0.180.0070.00017.23
8.0.170.0040.00417.31
8.0.160.0080.00017.39
8.0.150.0040.00417.32
8.0.140.0040.00417.28
8.0.130.0000.00613.73
8.0.120.0000.00817.26
8.0.110.0030.00517.28
8.0.100.0050.00317.28
8.0.90.0040.00417.21
8.0.80.0100.00717.20
8.0.70.0030.00517.28
8.0.60.0040.00417.07
8.0.50.0040.00417.38
8.0.30.0130.00817.35
8.0.20.0180.00817.65
8.0.10.0030.00517.45
8.0.00.0130.00517.15
7.4.330.0060.00015.41
7.4.320.0030.00316.97
7.4.300.0000.00616.98
7.4.290.0000.00716.96
7.4.280.0030.00617.16
7.4.270.0000.00717.13
7.4.260.0070.00017.08
7.4.250.0030.00516.93
7.4.240.0050.00217.07
7.4.230.0040.00417.15
7.4.220.0060.01216.86
7.4.210.0100.00616.89
7.4.200.0030.00617.11
7.4.160.0070.01017.05
7.4.150.0150.01017.40
7.4.140.0120.00617.86
7.4.130.0080.01217.03
7.4.120.0060.01116.94
7.4.110.0090.00916.95
7.4.100.0120.00617.06
7.4.90.0030.01316.97
7.4.80.0070.01519.39
7.4.70.0030.01416.91
7.4.60.0130.00316.72
7.4.50.0030.00716.91
7.4.40.0030.01517.07
7.4.30.0110.00616.76
7.4.00.0100.00615.57
7.3.330.0030.00313.61
7.3.320.0000.00513.76
7.3.310.0000.00716.89
7.3.300.0030.00316.65
7.3.290.0100.00716.70
7.3.280.0100.00616.72
7.3.270.0150.00917.40
7.3.260.0170.00716.73
7.3.250.0100.00916.84
7.3.240.0150.00316.96
7.3.230.0070.01017.00
7.3.210.0070.01016.80
7.3.200.0090.00819.39
7.3.190.0110.00716.82
7.3.180.0170.00016.82
7.3.170.0080.01017.05
7.3.160.0100.00616.77
7.2.330.0060.01117.13
7.2.320.0170.00717.17
7.2.310.0060.01117.02
7.2.300.0060.01317.13
7.2.290.0130.00316.99
7.2.60.0070.00717.30
7.2.00.0030.01320.07
7.1.200.0030.00916.18
7.1.100.0060.00618.85
7.1.70.0030.00617.79
7.1.60.0140.01019.30
7.1.00.0030.07722.88
7.0.200.0030.00617.40
7.0.60.0170.07020.23
7.0.50.0330.06020.57
7.0.40.0570.07320.58
7.0.30.0430.08320.62
7.0.20.0230.06020.66
7.0.10.0200.07320.58
7.0.00.0400.05720.58
5.6.280.0030.07321.34
5.6.210.0100.03720.97
5.6.200.0200.06021.42
5.6.190.0200.07021.32
5.6.180.0400.04321.27
5.6.170.0330.07021.16
5.6.160.0370.08021.30
5.6.150.0200.07021.31
5.6.140.0170.07321.27
5.6.130.0370.06321.25
5.6.120.0130.06721.32
5.6.110.0170.06021.30
5.6.100.0200.07021.15
5.6.90.0230.05721.23
5.6.80.0270.05320.61
5.6.70.0270.07020.66
5.6.60.0200.06020.71
5.6.50.0270.05720.77
5.6.40.0170.08020.69
5.6.30.0330.06720.63
5.6.20.0330.05720.64
5.6.10.0470.05320.61
5.6.00.0430.04720.66
5.5.350.0170.04320.49
5.5.340.0170.07320.84
5.5.330.0670.07020.88
5.5.320.0430.04021.02
5.5.310.0170.08021.02
5.5.300.0230.06021.00
5.5.290.0200.06720.99
5.5.280.0230.06320.91
5.5.270.0230.05321.01
5.5.260.0170.06021.01
5.5.250.0100.06720.85
5.5.240.0230.05020.35
5.5.230.0200.06320.23
5.5.220.0200.05720.24
5.5.210.0300.06020.36
5.5.200.0170.07720.19
5.5.190.0170.06320.25
5.5.180.5400.05320.21
5.5.160.0370.06720.34
5.5.150.0370.07020.29
5.5.140.0400.04720.05
5.5.130.0230.06020.36
5.5.120.0300.04720.10
5.5.110.0170.06320.22
5.5.100.0200.06720.27
5.5.90.0400.06320.16
5.5.80.0200.07720.10
5.5.70.0230.06720.27
5.5.60.0200.06720.26
5.5.50.0170.05720.06
5.5.40.0200.05020.07
5.5.30.0170.05720.14
5.5.20.0130.06019.91
5.5.10.0100.06720.10
5.5.00.0230.06320.14

preferences:
63.78 ms | 401 KiB | 5 Q