3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "this is school of sachin"; $pattern = "sch"; $b = explode(' ',$a); $b = array_reverse($b); die(strlen($b)); for($i=0;$i < strlen($b);$i++){ if(strpos($b[$i] ?>

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.230.0150.03812.38
5.4.220.0110.04212.38
5.4.210.0110.04112.38
5.4.200.0140.04512.38
5.4.190.0140.04612.37
5.4.180.0110.04712.37
5.4.170.0130.04512.38
5.4.160.0170.05112.38
5.4.150.0110.04512.37
5.4.140.0120.04512.06
5.4.130.0210.06612.04
5.4.120.0090.04712.01
5.4.110.0140.03612.01
5.4.100.0130.03812.01
5.4.90.0230.06012.00
5.4.80.0120.04312.00
5.4.70.0120.03912.00
5.4.60.0120.04412.00
5.4.50.0170.04312.00
5.4.40.0240.06011.99
5.4.30.0140.03811.98
5.4.20.0130.04111.98
5.4.10.0150.03611.98
5.4.00.0140.03811.48
5.3.280.0170.05212.71
5.3.270.0120.04312.72
5.3.260.0110.04912.72
5.3.250.0140.04112.72
5.3.240.0120.04512.72
5.3.230.0130.04312.71
5.3.220.0140.04212.68
5.3.210.0150.07212.68
5.3.200.0150.04212.68
5.3.190.0180.04212.68
5.3.180.0160.03812.67
5.3.170.0260.06012.67
5.3.160.0100.04312.67
5.3.150.0220.06112.67
5.3.140.0150.03712.66
5.3.130.0100.04512.66
5.3.120.0160.04412.66
5.3.110.0160.05412.66
5.3.100.0140.03912.12
5.3.90.0140.04112.08
5.3.80.0120.04112.07
5.3.70.0190.06512.08
5.3.60.0120.04312.07
5.3.50.0120.04412.00
5.3.40.0130.04212.00
5.3.30.0140.04911.94
5.3.20.0120.04011.72
5.3.10.0110.04111.69
5.3.00.0100.04111.67

preferences:
140.18 ms | 1386 KiB | 7 Q