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; } }; $kek = new Song("haha", "groupman", "manyhttp"); echo serialize($kek);

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)
8.3.60.0140.00718.43
8.3.50.0070.01122.08
8.3.40.0110.00418.88
8.3.30.0140.00019.26
8.3.20.0040.00420.24
8.3.10.0000.00822.10
8.3.00.0040.00422.43
8.2.180.0180.00416.38
8.2.170.0090.00618.91
8.2.160.0090.00922.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00017.75
8.2.110.0060.00321.12
8.2.100.0110.00017.72
8.2.90.0080.00018.34
8.2.80.0000.00818.28
8.2.70.0030.00617.63
8.2.60.0030.00517.50
8.2.50.0080.00017.63
8.2.40.0000.00819.22
8.2.30.0070.00017.56
8.2.20.0040.00417.60
8.2.10.0030.00619.34
8.2.00.0040.00417.69
8.1.280.0130.00725.92
8.1.270.0050.00224.66
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0060.00324.02
8.1.230.0040.00720.95
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0030.00617.36
8.1.180.0040.00418.10
8.1.170.0000.00819.03
8.1.160.0030.00518.95
8.1.150.0060.00318.61
8.1.140.0040.00817.37
8.1.130.0040.00417.88
8.1.120.0030.00517.45
8.1.110.0000.00717.43
8.1.100.0040.00417.48
8.1.90.0040.00417.35
8.1.80.0030.00317.46
8.1.70.0050.00217.34
8.1.60.0000.00917.54
8.1.50.0040.00417.52
8.1.40.0040.00417.53
8.1.30.0060.00317.69
8.1.20.0050.00317.70
8.1.10.0040.00417.58
8.1.00.0040.00417.52
8.0.300.0070.00019.89
8.0.290.0070.00016.63
8.0.280.0050.00218.08
8.0.270.0050.00217.90
8.0.260.0000.00716.74
8.0.250.0070.00016.93
8.0.240.0040.00416.96
8.0.230.0040.00316.98
8.0.220.0000.00716.85
8.0.210.0030.00616.76
8.0.200.0000.00616.98
8.0.190.0030.00316.97
8.0.180.0000.00716.98
8.0.170.0050.00216.80
8.0.160.0050.00216.77
8.0.150.0030.00516.81
8.0.140.0000.00816.74
8.0.130.0030.00313.31
8.0.120.0000.00816.75
8.0.110.0040.00416.88
8.0.100.0000.00716.89
8.0.90.0000.00716.82
8.0.80.0080.00716.89
8.0.70.0030.00516.79
8.0.60.0040.00416.89
8.0.50.0070.00016.93
8.0.30.0080.01417.03
8.0.20.0070.01117.40
8.0.10.0040.00416.89
8.0.00.0050.01416.61
7.4.330.0000.00715.00
7.4.320.0030.00316.65
7.4.300.0000.00816.61
7.4.290.0040.00416.60
7.4.280.0000.00816.49
7.4.270.0000.00716.62
7.4.260.0000.00716.60
7.4.250.0040.00416.48
7.4.240.0020.00516.51
7.4.230.0030.00316.59
7.4.220.0070.01116.55
7.4.210.0070.00916.55
7.4.200.0030.00316.35
7.4.190.0070.00016.71
7.4.160.0110.00416.29
7.4.150.0140.00317.40
7.4.140.0140.01017.86
7.4.130.0100.00616.59
7.4.120.0090.00916.41
7.4.110.0130.00616.48
7.4.100.0100.00716.50
7.4.90.0080.00816.57
7.4.80.0110.00719.39
7.4.70.0090.00616.32
7.4.60.0090.00616.45
7.4.50.0000.00916.47
7.4.40.0120.00422.77
7.4.30.0070.01716.68
7.4.00.0070.00714.79
7.3.330.0000.00613.31
7.3.320.0020.00213.08
7.3.310.0030.00316.39
7.3.300.0030.00316.23
7.3.290.0100.00716.28
7.3.280.0120.00616.31
7.3.270.0040.01417.40
7.3.260.0070.01016.62
7.3.250.0090.01016.34
7.3.240.0180.00016.47
7.3.230.0030.01316.48
7.3.210.0170.00016.54
7.3.200.0040.01819.39
7.3.190.0130.00716.52
7.3.180.0130.00316.52
7.3.170.0070.01416.40
7.3.160.0100.01016.21
7.3.120.0070.00715.03
7.2.330.0120.00616.56
7.2.320.0070.01016.68
7.2.310.0120.01016.36
7.2.300.0070.01416.84
7.2.290.0120.00616.60
7.2.80.0030.00916.38
7.2.60.0090.00616.68
7.2.00.0070.00719.53
7.1.200.0070.00715.82
7.1.100.0000.01417.95
7.1.70.0060.00316.96
7.1.60.0090.00919.82
7.1.50.0130.01016.99
7.1.00.0030.07722.36
7.0.200.0180.00316.55
7.0.140.0030.07321.92
7.0.60.0070.08319.80
7.0.50.0070.06717.88
7.0.40.0070.07020.27
7.0.30.0170.04320.06
7.0.20.0300.08020.17
7.0.10.0070.05720.08
7.0.00.0070.04720.16
5.6.280.0000.07720.91
5.6.210.0000.04320.47
5.6.200.0200.07318.24
5.6.190.0100.08720.41
5.6.180.0300.04020.36
5.6.170.0100.04720.55
5.6.160.0070.04020.61
5.6.150.0070.08718.24
5.6.140.0000.04318.24
5.6.130.0070.05018.25
5.6.120.0030.06020.91
5.6.110.0100.08320.98
5.6.100.0030.06720.89
5.6.90.0070.06021.14
5.6.80.0030.05320.39
5.6.70.0130.04720.30
5.5.350.0400.06720.33
5.5.340.0200.05717.97
5.5.330.0030.04720.21
5.5.320.0300.07720.46
5.5.310.0300.07020.39
5.5.300.0070.07717.93
5.5.290.0030.04018.05
5.5.280.0070.05720.89
5.5.270.0030.04020.69
5.5.260.0100.05720.69
5.5.250.0130.07720.59
5.5.240.0030.08320.27
5.4.450.0370.07319.40
5.4.440.0400.05719.52
5.4.430.0330.07019.47
5.4.420.0300.04019.43
5.4.410.0130.05019.29
5.4.400.0270.04019.16
5.4.390.0270.04019.19
5.4.380.0300.02719.30
5.4.370.0470.02718.87
5.4.360.0270.03018.86
5.4.350.0200.03719.20
5.4.340.0230.04318.99
5.4.320.0270.04019.25
5.4.310.0270.04319.16
5.4.300.0270.03018.99
5.4.290.0200.03719.24
5.4.280.0200.04718.95
5.4.270.0200.04019.05
5.4.260.0270.04318.85
5.4.250.0170.04319.30
5.4.240.0270.06019.21
5.4.230.0430.06319.09
5.4.220.0300.04319.21
5.4.210.0330.07319.15
5.4.200.0230.04719.30
5.4.190.0570.05319.08
5.4.180.0300.05319.15
5.4.170.0370.06719.05
5.4.160.0230.07719.00
5.4.150.0230.04718.86
5.4.140.0370.07316.36
5.4.130.0230.07716.43
5.4.120.0230.04316.54
5.4.110.0270.07316.61
5.4.100.0270.04316.50
5.4.90.0270.04716.50
5.4.80.0270.05316.44
5.4.70.0270.04716.48
5.4.60.0270.06716.49
5.4.50.0270.04016.54
5.4.40.0370.05016.54
5.4.30.0270.03316.48
5.4.20.0330.05316.49
5.4.10.0270.04716.23
5.4.00.0300.03315.95
5.3.290.0300.03714.67
5.3.280.0270.06014.83
5.3.270.0270.04014.59
5.3.260.0270.05014.60
5.3.250.0300.05714.60
5.3.240.0470.07014.71
5.3.230.0300.07314.69
5.3.220.0370.03714.51
5.3.210.0300.06314.60
5.3.200.0330.04014.80
5.3.190.0300.07014.56
5.3.180.0330.03714.58
5.3.170.0330.04314.50
5.3.160.0300.06314.59
5.3.150.0400.06314.80
5.3.140.0330.05314.79
5.3.130.0230.05014.55
5.3.120.0270.07714.54
5.3.110.0400.06314.48
5.3.100.0300.04313.97
5.3.90.0370.03714.04
5.3.80.0400.06014.04
5.3.70.0300.05313.93
5.3.60.0230.03714.09
5.3.50.0230.04713.89
5.3.40.0300.04013.86
5.3.30.0430.04713.84
5.3.20.0300.07013.61
5.3.10.0370.05013.57
5.3.00.0400.04313.81
5.2.170.0200.03711.69
5.2.160.0470.03311.69
5.2.150.0330.04311.69
5.2.140.0200.03011.69
5.2.130.0300.04711.69
5.2.120.0300.04711.69
5.2.110.0230.02711.69
5.2.100.0330.05011.69
5.2.90.0230.04311.69
5.2.80.0200.04011.69
5.2.70.0230.02711.69
5.2.60.0370.02711.69
5.2.50.0200.03011.69
5.2.40.0200.05711.69
5.2.30.0230.05011.69
5.2.20.0170.03011.69
5.2.10.0300.04011.69
5.2.00.0170.04011.69
5.1.60.0230.05011.69
5.1.50.0230.02711.69
5.1.40.0200.05011.69
5.1.30.0230.03311.69
5.1.20.0270.05011.69
5.1.10.0330.04011.69
5.1.00.0230.05311.69
5.0.50.0200.02711.69
5.0.40.0200.03711.69
5.0.30.0130.04011.69
5.0.20.0170.03711.69
5.0.10.0130.03711.69
5.0.00.0070.06711.69
4.4.90.0100.03311.69
4.4.80.0100.03011.69
4.4.70.0070.03311.69
4.4.60.0070.03311.69
4.4.50.0070.03711.69
4.4.40.0100.04311.69
4.4.30.0070.02711.69
4.4.20.0100.03011.69
4.4.10.0170.02711.69
4.4.00.0100.05711.69
4.3.110.0130.02011.69
4.3.100.0100.01711.69
4.3.90.0130.03011.69
4.3.80.0130.05011.69
4.3.70.0130.03011.69
4.3.60.0130.03011.69
4.3.50.0070.04011.69
4.3.40.0130.04711.69
4.3.30.0030.02011.69
4.3.20.0100.03011.69
4.3.10.0070.03311.69
4.3.00.0100.03011.69

preferences:
45.98 ms | 401 KiB | 5 Q