3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testvar="Cust: Newtel (je.cco.ntj.bgw01 Management)"; function getPsudowire($desc) { $string=explode("{", $desc); $string2=explode("}", $string[1]); return trim($string2[0]); } //function getCircuit(&desc){ // &string=explode("(", $desc); // $string2=explode(")", $string[1]); // return trim($string2[0]); //} $psudowire = getPsudowire(&testvar);

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)
5.4.290.0110.05012.50
5.4.280.0170.04512.40
5.4.270.0110.05112.40
5.4.260.0090.03612.40
5.4.250.0090.04812.39
5.4.240.0090.05612.40
5.4.230.0120.05012.39
5.4.220.0110.04712.39
5.4.210.0070.04912.39
5.4.200.0070.06012.39
5.4.190.0140.05212.39
5.4.180.0110.05512.38
5.4.170.0070.05312.39
5.4.160.0090.05412.38
5.4.150.0090.05512.38
5.4.140.0080.04412.07
5.4.130.0030.03912.05
5.4.120.0090.03612.02
5.4.110.0080.03612.01
5.4.100.0070.03812.02
5.4.90.0090.03612.01
5.4.80.0090.05212.02
5.4.70.0110.05312.02
5.4.60.0070.05812.01
5.4.50.0110.05512.01
5.4.40.0150.05112.00
5.4.30.0110.04912.00
5.4.20.0090.04611.99
5.4.10.0160.05611.99
5.4.00.0130.06411.48
5.3.280.0150.07012.71
5.3.270.0160.07712.72
5.3.260.0090.06012.72
5.3.250.0080.04312.72
5.3.240.0100.04912.72
5.3.230.0090.05112.71
5.3.220.0060.05412.68
5.3.210.0090.04012.68
5.3.200.0080.04412.68
5.3.190.0100.03612.68
5.3.180.0060.03712.67
5.3.170.0070.03712.67
5.3.160.0110.05112.68
5.3.150.0060.04012.67
5.3.140.0070.03712.66
5.3.130.0090.03712.66
5.3.120.0130.03312.66
5.3.110.0070.04412.66
5.3.100.0090.05412.13
5.3.90.0110.05312.11
5.3.80.0110.05112.09
5.3.70.0080.05112.09
5.3.60.0150.04512.07
5.3.50.0060.04312.02
5.3.40.0080.03612.02
5.3.30.0050.04511.98
5.3.20.0060.03611.77
5.3.10.0070.03811.73
5.3.00.0100.04911.72
5.2.170.0090.0399.22
5.2.160.0060.0359.22
5.2.150.0040.0459.21
5.2.140.0070.0419.21
5.2.130.0070.0379.18
5.2.120.0060.0289.18
5.2.110.0070.0299.18
5.2.100.0030.0409.18
5.2.90.0090.0389.18
5.2.80.0060.0319.18
5.2.70.0030.0329.18
5.2.60.0060.0339.13
5.2.50.0030.0339.10
5.2.40.0020.0339.08
5.2.30.0040.0389.05
5.2.20.0050.0309.04
5.2.10.0040.0308.95
5.2.00.0060.0288.80
5.1.60.0050.0248.09
5.1.50.0070.0228.09
5.1.40.0040.0298.07
5.1.30.0050.0318.42
5.1.20.0060.0368.44
5.1.10.0030.0408.17
5.1.00.0040.0318.16
5.0.50.0040.0286.64
5.0.40.0050.0186.50
5.0.30.0020.0456.31
5.0.20.0060.0246.28
5.0.10.0040.0226.26
5.0.00.0050.0316.25
4.4.90.0030.0214.78
4.4.80.0030.0174.76
4.4.70.0030.0154.75
4.4.60.0010.0174.75
4.4.50.0020.0174.77
4.4.40.0030.0254.71
4.4.30.0050.0154.76
4.4.20.0040.0224.84
4.4.10.0060.0204.84
4.4.00.0050.0264.76
4.3.110.0030.0154.67
4.3.100.0000.0184.67
4.3.90.0030.0144.63
4.3.80.0070.0294.59
4.3.70.0020.0224.63
4.3.60.0040.0184.63
4.3.50.0080.0144.63
4.3.40.0040.0244.54
4.3.30.0010.0213.30
4.3.20.0020.0153.29
4.3.10.0000.0173.24
4.3.00.0070.0177.20

preferences:
140.46 ms | 1394 KiB | 7 Q