3v4l.org

run code in 300+ PHP versions simultaneously
<?php class OutputFilter { protected $matchPattern; protected $replacement; }; class LogFileFormat { protected $filters; protected $endl; }; class LogWriter_File { protected $filename; protected $format; }; class Logger { protected $logwriter; }; class Song { protected $logger; protected $name; protected $group; protected $url; function __construct($name, $group, $url) { $this->name = $name; $this->group = $group; $this->url = $url; $fltr = new OutputFilter("(.*)/e", "echo wowoowowowoowow"); $this->logger = new Logger(new LogWriter_File("song_views", new LogFileFormat(array($fltr), "\n"))); } }; class Lyrics { protected $lyrics; protected $song; function __construct($lyrics, $song) { $this->song = $song; $this->lyrics = $lyrics; } }; $k

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.270.0200.03719.09
5.4.260.0170.04018.94
5.4.250.0200.04019.21
5.4.240.0200.03319.15
5.4.230.0200.03319.14
5.4.220.0200.04018.86
5.4.210.0230.03319.21
5.4.200.0130.04319.21
5.4.190.0170.04018.97
5.4.180.0230.03719.08
5.4.170.0200.03718.97
5.4.160.0300.03318.98
5.4.150.0230.03319.30
5.4.140.0130.04716.40
5.4.130.0170.03316.50
5.4.120.0170.03716.43
5.4.110.0230.03016.39
5.4.100.0270.03716.70
5.4.90.0170.03716.50
5.4.80.0200.03316.59
5.4.70.0170.04016.59
5.4.60.0400.02316.18
5.4.50.0230.03716.52
5.4.40.0200.03316.53
5.4.30.0170.03316.25
5.4.20.0200.03716.25
5.4.10.0100.05316.48
5.4.00.0230.04015.95
5.3.280.0170.04314.53
5.3.270.0100.04714.62
5.3.260.0200.03714.54
5.3.250.0270.04314.63
5.3.240.0230.03314.54
5.3.230.0170.03714.59
5.3.220.0170.03714.59
5.3.210.0100.04714.58
5.3.200.0170.03714.59
5.3.190.0200.03314.66
5.3.180.0270.04014.48
5.3.170.0100.04314.65
5.3.160.0100.04314.55
5.3.150.0200.04014.66
5.3.140.0230.03014.55
5.3.130.0130.04014.72
5.3.120.0200.03714.61
5.3.110.0200.03314.61
5.3.100.0200.03714.27
5.3.90.0300.02713.93
5.3.80.0230.04713.94
5.3.70.0270.04313.96
5.3.60.0200.03714.10
5.3.50.0330.06314.02
5.3.40.0400.06713.98
5.3.30.0230.03713.84
5.3.20.0230.07013.62
5.3.10.0330.06713.76
5.3.00.0300.06313.87
5.2.170.0170.04311.07
5.2.160.0270.03011.09
5.2.150.0200.03011.06
5.2.140.0230.02311.17
5.2.130.0370.04711.13
5.2.120.0270.05011.10
5.2.110.0170.04311.04
5.2.100.0200.03011.19
5.2.90.0170.03011.20
5.2.80.0200.05311.02
5.2.70.0300.04711.25
5.2.60.0230.03011.07
5.2.50.0200.04710.96
5.2.40.0230.05310.96
5.2.30.0200.02710.89
5.2.20.0170.03011.02
5.2.10.0230.05010.95
5.2.00.0270.05010.73
5.1.60.0230.04710.17
5.1.50.0170.04710.17
5.1.40.0200.03710.17
5.1.30.0200.04310.27
5.1.20.0270.04710.37
5.1.10.0130.03010.17
5.1.00.0200.04710.17
5.0.50.0200.03310.17
5.0.40.0100.04710.17
5.0.30.0100.06310.17
5.0.20.0100.02010.17
5.0.10.0130.02310.17
5.0.00.0070.04310.17
4.4.90.0100.01710.17
4.4.80.0200.02310.17
4.4.70.0070.02310.17
4.4.60.0100.03010.17
4.4.50.0130.03710.17
4.4.40.0100.05310.17
4.4.30.0100.03010.17
4.4.20.0100.03310.17
4.4.10.0100.02010.17
4.4.00.0070.03010.17
4.3.110.0100.03310.17
4.3.100.0070.02010.17
4.3.90.0100.01310.17
4.3.80.0100.04310.17
4.3.70.0130.03310.17
4.3.60.0130.03310.17
4.3.50.0100.02710.17
4.3.40.0100.03010.17
4.3.30.0070.03310.17
4.3.20.0030.02710.17
4.3.10.0030.03010.17
4.3.00.0030.02310.17

preferences:
142.02 ms | 1394 KiB | 7 Q