3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "foo:bar"; $arr = array(); $arr[] = trim( end( explode( ":", $str ) );

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.280.0140.08912.36
5.4.270.0190.07112.36
5.4.260.0140.07912.36
5.4.250.0130.07912.36
5.4.240.0110.07812.36
5.4.230.0100.08712.35
5.4.220.0070.04612.35
5.4.210.0070.03812.36
5.4.200.0050.04512.35
5.4.190.0050.04312.35
5.4.180.0060.03912.35
5.4.170.0090.03812.36
5.4.160.0070.05512.35
5.4.150.0060.03912.35
5.4.140.0070.04012.04
5.4.130.0080.04512.02
5.4.120.0100.05711.99
5.4.110.0130.06311.98
5.4.100.0190.09011.99
5.4.90.0120.11611.98
5.4.80.0070.05911.98
5.4.70.0150.04611.98
5.4.60.0140.08311.98
5.4.50.0040.05811.98
5.4.40.0130.05711.96
5.4.30.0090.05411.96
5.4.20.0150.06311.96
5.4.10.0120.08611.96
5.4.00.0090.07611.45
5.3.280.0130.07112.71
5.3.270.0150.06512.72
5.3.260.0100.11112.72
5.3.250.0150.07912.71
5.3.240.0090.08512.72
5.3.230.0160.09512.71
5.3.220.0200.10512.68
5.3.210.0210.08812.68
5.3.200.0090.06212.68
5.3.190.0070.05412.68
5.3.180.0120.05112.68
5.3.170.0080.05812.67
5.3.160.0090.06412.67
5.3.150.0160.07812.67
5.3.140.0080.05412.66
5.3.130.0100.06712.66
5.3.120.0090.09112.66
5.3.110.0100.08512.66
5.3.100.0120.08112.12
5.3.90.0110.07512.08
5.3.80.0180.07412.07
5.3.70.0060.06112.07
5.3.60.0070.06012.06
5.3.50.0120.10112.00
5.3.40.0180.06112.00
5.3.30.0070.05311.94
5.3.20.0160.06311.70
5.3.10.0170.08711.67
5.3.00.0120.07011.66
5.2.170.0100.0589.15
5.2.160.0050.0339.16
5.2.150.0030.0469.16
5.2.140.0070.0509.15
5.2.130.0050.0829.11
5.2.120.0110.0509.11
5.2.110.0070.0359.11
5.2.100.0150.0809.12
5.2.90.0080.0459.11
5.2.80.0050.0509.11
5.2.70.0110.0439.10
5.2.60.0060.0489.07
5.2.50.0070.0479.04
5.2.40.0060.0449.01
5.2.30.0080.0468.98
5.2.20.0110.0408.97
5.2.10.0050.0458.90
5.2.00.0080.0448.76
5.1.60.0080.0388.04
5.1.50.0070.0478.05
5.1.40.0110.0538.02
5.1.30.0110.0408.38
5.1.20.0120.0508.40
5.1.10.0090.0528.13
5.1.00.0110.0368.13
5.0.50.0180.0566.59
5.0.40.0080.0516.46
5.0.30.0070.0456.27
5.0.20.0090.0256.25
5.0.10.0070.0316.23
5.0.00.0040.0766.21
4.4.90.0060.0234.78
4.4.80.0070.0254.76
4.4.70.0120.0184.75
4.4.60.0080.0214.75
4.4.50.0050.0244.77
4.4.40.0070.0354.71
4.4.30.0050.0274.76
4.4.20.0050.0224.84
4.4.10.0000.0274.85
4.4.00.0030.0414.75
4.3.110.0050.0204.67
4.3.100.0040.0164.67
4.3.90.0040.0164.64
4.3.80.0060.0334.58
4.3.70.0030.0284.63
4.3.60.0040.0214.63
4.3.50.0070.0264.63
4.3.40.0070.0374.54
4.3.30.0050.0263.27
4.3.20.0070.0243.25
4.3.10.0040.0273.21
4.3.00.0070.0276.82

preferences:
142.59 ms | 1394 KiB | 7 Q