3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current_file_name = basename($_SERVER['PHP_SELF']); echo $current_file_name; - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#sthash.h23APE3v.dpuf ?>

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.310.0270.05319.22
5.4.300.0270.05019.19
5.4.290.0300.06719.08
5.4.280.0270.04319.08
5.4.270.0230.07719.21
5.4.260.0270.07319.09
5.4.250.0370.05719.30
5.4.240.0170.04319.09
5.4.230.0170.04018.98
5.4.220.0300.06719.10
5.4.210.0230.07718.86
5.4.200.0300.07018.97
5.4.190.0170.06718.84
5.4.180.0230.03719.21
5.4.170.0170.07019.30
5.4.160.0270.07019.07
5.4.150.0300.07019.23
5.4.140.0300.03716.34
5.4.130.0230.06716.50
5.4.120.0230.05716.50
5.4.110.0200.04716.52
5.4.100.0330.05016.56
5.4.90.0270.05316.27
5.4.80.0230.06716.17
5.4.70.0230.05716.54
5.4.60.0230.06016.33
5.4.50.0200.04016.56
5.4.40.0230.03716.55
5.4.30.0200.04016.23
5.4.20.0230.03716.16
5.4.10.0200.04716.16
5.4.00.0230.06015.96
5.3.280.0270.06314.54
5.3.270.0270.07314.63
5.3.260.0300.05714.57
5.3.250.0230.06014.59
5.3.240.0200.07314.45
5.3.230.0230.05714.50
5.3.220.0270.06014.59
5.3.210.0270.06714.52
5.3.200.0230.06314.41
5.3.190.0230.06014.66
5.3.180.0300.07314.59
5.3.170.0200.07314.39
5.3.160.0200.04314.39
5.3.150.0200.03714.51
5.3.140.0200.04314.42
5.3.130.0270.06014.42
5.3.120.0200.05314.53
5.3.110.0230.06714.49
5.3.100.0300.03313.98
5.3.90.0170.07713.98
5.3.80.0170.04013.86
5.3.70.0270.02713.96
5.3.60.0230.06714.05
5.3.50.0230.05313.72
5.3.40.0170.05713.79
5.3.30.0270.07013.86
5.3.20.0300.05313.78
5.3.10.0230.06713.51
5.3.00.0200.07013.59

preferences:
157.39 ms | 1394 KiB | 7 Q