3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Post { protected $title; protected $text; protected $filters; function __construct($title, $text, $filters) { $this->title = $title; $this->text = $text; $this->filters = $filters; } function get_title() { return htmlspecialchars($this->title); } function display_post() { $text = htmlspecialchars($this->text); foreach ($this->filters as $filter) $text = $filter->filter($text); return $text; } function __destruct() { // debugging stuff $s = "<!-- POST " . htmlspecialchars($this->title); $text = htmlspecialchars($this->text); foreach ($this->filters as $filter) $text = $filter->filter($text); $s = $s . ": " . $text; $s = $s . " -->"; echo $s; } }; echo unserialize(serialize(new Post("huehuehue i repor u", "brshrekt", Array())));

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.39
8.3.50.0140.00821.19
8.3.40.0060.01218.79
8.3.30.0120.00319.04
8.3.20.0070.00020.29
8.3.10.0050.00321.86
8.3.00.0050.00319.38
8.2.180.0110.00416.46
8.2.170.0070.00722.96
8.2.160.0030.01020.52
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.85
8.2.110.0060.00320.89
8.2.100.0040.00818.03
8.2.90.0090.00019.09
8.2.80.0040.00417.97
8.2.70.0070.00317.63
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0060.00319.94
8.2.30.0000.00818.08
8.2.20.0040.00417.82
8.2.10.0000.00718.07
8.2.00.0050.00317.84
8.1.280.0110.01125.92
8.1.270.0060.00321.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01021.16
8.1.230.0100.00017.76
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0000.00817.35
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0060.00318.57
8.1.160.0000.00822.00
8.1.150.0040.00418.86
8.1.140.0050.00217.46
8.1.130.0000.00717.80
8.1.120.0000.00717.48
8.1.110.0080.00017.42
8.1.100.0000.00817.45
8.1.90.0040.00417.48
8.1.80.0040.00417.45
8.1.70.0070.00017.43
8.1.60.0040.00417.61
8.1.50.0030.00517.58
8.1.40.0000.00817.58
8.1.30.0000.00817.57
8.1.20.0000.00717.63
8.1.10.0030.00617.61
8.1.00.0050.00317.48
8.0.300.0000.00818.77
8.0.290.0060.00316.75
8.0.280.0030.00318.46
8.0.270.0070.00017.19
8.0.260.0000.00617.15
8.0.250.0030.00316.98
8.0.240.0030.00317.11
8.0.230.0030.00317.04
8.0.220.0000.00817.02
8.0.210.0030.00317.00
8.0.200.0000.00717.09
8.0.190.0030.00517.03
8.0.180.0040.00417.02
8.0.170.0000.00716.98
8.0.160.0080.00017.06
8.0.150.0000.00717.02
8.0.140.0050.00216.86
8.0.130.0060.00013.44
8.0.120.0070.00016.82
8.0.110.0030.00617.03
8.0.100.0040.00417.02
8.0.90.0080.00016.97
8.0.80.0120.00916.99
8.0.70.0070.00017.02
8.0.60.0070.00016.87
8.0.50.0080.00017.02
8.0.30.0100.00917.02
8.0.20.0110.00817.40
8.0.10.0040.00416.91
8.0.00.0050.01216.87
7.4.330.0030.00315.07
7.4.320.0000.00616.65
7.4.300.0000.00616.66
7.4.290.0000.00816.41
7.4.280.0030.00616.52
7.4.270.0070.00016.54
7.4.260.0080.00016.55
7.4.250.0000.00716.48
7.4.240.0040.00416.56
7.4.230.0070.00016.72
7.4.220.0100.01016.63
7.4.210.0060.01016.42
7.4.200.0030.00316.69
7.4.160.0130.00316.60
7.4.150.0120.00617.40
7.4.140.0080.01117.86
7.4.130.0090.00916.50
7.4.120.0080.01216.76
7.4.110.0100.00716.61
7.4.100.0170.01316.57
7.4.90.0030.01416.54
7.4.80.0120.00619.39
7.4.70.0190.00016.64
7.4.60.0060.00916.53
7.4.50.0000.00916.58
7.4.40.0070.01116.36
7.4.30.0080.01316.57
7.4.00.0060.01114.86
7.3.330.0000.00513.35
7.3.320.0030.00313.39
7.3.310.0000.00716.25
7.3.300.0030.00416.39
7.3.290.0120.00516.38
7.3.280.0080.01016.37
7.3.270.0100.00917.40
7.3.260.0060.01316.48
7.3.250.0140.00516.59
7.3.240.0120.00616.42
7.3.230.0110.00516.39
7.3.210.0030.01316.41
7.3.200.0080.00819.39
7.3.190.0070.01416.45
7.3.180.0160.00016.50
7.3.170.0030.01316.57
7.3.160.0110.00716.63
7.3.120.0070.01414.66
7.3.110.0000.01714.64
7.3.100.0140.00014.81
7.3.90.0000.00914.82
7.3.80.0040.01114.96
7.3.70.0040.01114.98
7.3.60.0070.00714.91
7.3.50.0030.00614.82
7.3.40.0060.01014.86
7.3.30.0090.00614.90
7.3.20.0070.00316.89
7.3.10.0060.00716.63
7.3.00.0070.00516.67
7.2.330.0070.01116.81
7.2.320.0100.00616.47
7.2.310.0160.00016.93
7.2.300.0090.00616.78
7.2.290.0090.01216.79
7.2.250.0090.01314.71
7.2.240.0040.01515.27
7.2.230.0060.00914.77
7.2.220.0070.00415.09
7.2.210.0070.00315.15
7.2.200.0060.00615.18
7.2.190.0080.00414.83
7.2.180.0100.00614.92
7.2.170.0070.01014.96
7.2.130.0050.00516.90
7.2.120.0140.00916.86
7.2.110.0090.00916.88
7.2.100.0110.00616.80
7.2.90.0110.00316.82
7.2.80.0070.00716.81
7.2.70.0170.00216.87
7.2.60.0060.00516.71
7.2.50.0070.00316.80
7.2.40.0040.01116.77
7.2.30.0030.00616.67
7.2.20.0120.00416.64
7.2.10.0110.00416.55
7.2.00.0100.00518.36
7.1.330.0070.00715.80
7.1.320.0000.01515.92
7.1.310.0040.01115.63
7.1.300.0040.00815.83
7.1.290.0000.01115.44
7.1.280.0030.00615.91
7.1.270.0000.01215.52
7.1.260.0030.01015.86
7.1.250.0040.01215.92
7.1.200.0030.00715.96
7.1.100.0030.00918.29
7.1.70.0160.00917.09
7.1.60.0060.01919.11
7.1.50.0260.01634.59
7.1.00.0070.07322.54
7.0.200.0030.00516.93
7.0.140.0030.07321.98
7.0.100.0070.03719.94
7.0.90.0070.08719.95
7.0.80.0000.04319.99
7.0.70.0300.07019.94
7.0.60.0070.05319.87
7.0.50.0230.05020.21
7.0.40.0270.01720.09
7.0.30.0070.08020.14
7.0.20.0030.05020.00
7.0.10.0000.05720.14
7.0.00.0070.06719.99
5.6.280.0030.07320.92
5.6.250.0070.07020.63
5.6.240.0030.08320.67
5.6.230.0100.03320.59
5.6.220.0000.04320.68
5.6.210.0030.09020.59
5.6.200.0030.04021.13
5.6.190.0030.08321.11
5.6.180.0100.05721.11
5.6.170.0170.06021.08
5.6.160.0070.08021.09
5.6.150.0070.04721.09
5.6.140.0070.07321.14
5.6.130.0070.08721.12
5.6.120.0030.06021.05
5.6.110.0030.08720.98
5.6.100.0100.03321.00
5.6.90.0070.05721.01
5.6.80.0100.04720.33
5.6.70.0070.06320.46
5.6.60.0000.05320.44
5.6.50.0030.03320.43
5.6.40.0000.09320.34
5.6.30.0070.05320.54
5.6.20.0030.04020.41
5.6.10.0070.03320.32
5.6.00.0030.03720.37
5.5.380.0100.06720.43
5.5.370.0130.07320.33
5.5.360.0030.07320.38
5.5.350.0100.08020.42
5.5.340.0070.06320.80
5.5.330.0000.08720.80
5.5.320.0100.05020.81
5.5.310.0030.04320.94
5.5.300.0030.06320.89
5.5.290.0130.07020.92
5.5.280.0000.04720.94
5.5.270.0230.03320.77
5.5.260.0130.05720.88
5.5.250.0100.05320.71
5.5.240.0000.04320.30
5.5.230.0070.03720.26
5.5.220.0230.05720.16
5.5.210.0130.06720.12
5.5.200.0100.03020.13
5.5.190.0070.03720.28
5.5.180.0100.06720.10
5.5.160.0100.07720.13
5.5.150.0030.06720.18
5.5.140.0030.08320.00
5.5.130.0030.07720.24
5.5.120.0000.07020.23
5.5.110.0000.04020.13
5.5.100.0070.06719.96
5.5.90.0070.07020.16
5.5.80.0070.03320.10
5.5.70.0030.06720.11
5.5.60.0070.04320.10
5.5.50.0100.06320.10
5.5.40.0030.07020.16
5.5.30.0070.06720.16
5.5.20.0030.04020.15
5.5.10.0070.05320.12
5.5.00.0130.06320.06
5.4.450.0030.07319.38
5.4.440.0000.04319.20
5.4.430.0070.06019.50
5.4.420.0030.08019.46
5.4.410.0070.03719.24
5.4.400.0030.05319.18
5.4.390.0030.07719.14
5.4.380.0070.07719.19
5.4.370.0000.03719.10
5.4.360.0030.06018.95
5.4.350.0030.05319.21
5.4.340.0030.04319.13
5.4.320.0030.07019.12
5.4.310.0030.05718.88
5.4.300.0000.03718.90
5.4.290.0030.06019.09
5.4.280.0000.08319.11
5.4.270.0130.07019.13
5.4.260.0030.08019.23
5.4.250.0070.07019.04
5.4.240.0070.06019.09
5.4.230.0030.07719.23
5.4.220.0130.07019.03
5.4.210.0000.03719.04
5.4.200.0030.07019.23
5.4.190.0070.03319.04
5.4.180.0000.04719.02
5.4.170.0200.06318.94
5.4.160.0100.05019.02
5.4.150.0130.03018.83
5.4.140.0130.02316.37
5.4.130.0030.06716.36
5.4.120.0100.05716.20
5.4.110.0070.04316.39
5.4.100.0000.06716.32
5.4.90.0030.07016.49
5.4.80.0070.03016.35
5.4.70.0070.06716.47
5.4.60.0030.04716.41
5.4.50.0030.07716.44
5.4.40.0030.05016.54
5.4.30.0000.04016.36
5.4.20.0030.07016.39
5.4.10.0100.05716.44
5.4.00.0170.05315.81
5.3.290.0030.03714.61
5.3.280.0030.04714.62
5.3.270.0030.04314.54
5.3.260.0000.04014.73
5.3.250.0070.05314.55
5.3.240.0000.07014.60
5.3.230.0130.07014.72
5.3.220.0030.03314.51
5.3.210.0100.05714.70
5.3.200.0070.05314.61
5.3.190.0070.07014.51
5.3.180.0130.06714.64
5.3.170.0000.07014.51
5.3.160.0030.07014.55
5.3.150.0100.06014.55
5.3.140.0070.04014.65
5.3.130.0000.06014.54
5.3.120.0100.06714.63
5.3.110.0000.04014.62
5.3.100.0130.05714.19
5.3.90.0030.07314.10
5.3.80.0030.05314.03
5.3.70.0070.06713.98
5.3.60.0070.07313.93
5.3.50.0030.07013.88
5.3.40.0030.03713.89
5.3.30.0070.06713.98
5.3.20.0000.04313.73
5.3.10.0030.05713.60
5.3.00.0000.06713.65
5.2.170.0100.05711.73
5.2.160.0030.04711.73
5.2.150.0030.06711.73
5.2.140.0030.05311.73
5.2.130.0030.05311.73
5.2.120.0030.05711.73
5.2.110.0030.05311.73
5.2.100.0070.05711.73
5.2.90.0030.04711.73
5.2.80.0070.05711.73
5.2.70.0070.05711.73
5.2.60.0070.05311.73
5.2.50.0000.06311.73
5.2.40.0030.06311.73
5.2.30.0000.05011.73
5.2.20.0000.05011.73
5.2.10.0070.05311.73
5.2.00.0000.04711.73
5.1.60.0030.02711.73
5.1.50.0000.02311.73
5.1.40.0030.02711.73
5.1.30.0000.02711.73
5.1.20.0000.02711.73
5.1.10.0070.01711.73
5.1.00.0000.02311.73
5.0.50.0030.04711.73
5.0.40.0030.04011.73
5.0.30.0030.04011.73
5.0.20.0070.03311.73
5.0.10.0000.04011.73
5.0.00.0030.02711.73
4.4.90.0000.03011.73
4.4.80.0030.03711.73
4.4.70.0070.03011.73
4.4.60.0100.03011.73
4.4.50.0030.02711.73
4.4.40.0000.03011.73
4.4.30.0000.02711.73
4.4.20.0030.03311.73
4.4.10.0000.02711.73
4.4.00.0000.02311.73
4.3.110.0030.01311.73
4.3.100.0000.03311.73
4.3.90.0000.01711.73
4.3.80.0000.02711.73
4.3.70.0000.01711.73
4.3.60.0030.01311.73
4.3.50.0000.03011.73
4.3.40.0070.02711.73
4.3.30.0100.02311.73
4.3.20.0000.02011.73
4.3.10.0070.00711.73
4.3.00.0030.01711.73

preferences:
44.02 ms | 401 KiB | 5 Q