3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a='I love you'; echo str_replace_first('z','ea',$a); function str_replace_first($this,$that,$where) { return substr($where,0,strpos($where,$this)). $that. substr($where,strpos($where,$this)+strlen($this)); }

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)
7.3.20.0550.00714.55
7.3.10.0700.00014.54
7.3.00.0690.00714.49
7.2.150.0610.00314.95
7.2.140.1340.01014.87
7.2.130.0450.01014.60
7.2.120.0390.00714.70
7.2.110.0440.00714.69
7.2.100.0460.00414.75
7.2.90.0430.00714.73
7.2.80.0440.00614.82
7.2.70.0630.00014.77
7.2.60.0460.00314.58
7.2.50.0930.01014.97
7.2.40.0740.00714.90
7.2.30.0790.01014.81
7.2.20.0530.01014.92
7.2.10.0510.00614.79
7.2.00.0580.01014.74
7.1.250.0500.00013.51

preferences:
140.44 ms | 1394 KiB | 7 Q