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 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.0070.01118.30
8.3.50.0130.00721.34
8.3.40.0190.00318.75
8.3.30.0090.00619.23
8.3.20.0050.00220.20
8.3.10.0040.00421.64
8.3.00.0000.00819.38
8.2.180.0040.01116.38
8.2.170.0110.00422.96
8.2.160.0100.00720.16
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00522.23
8.2.110.0110.00021.11
8.2.100.0060.00617.62
8.2.90.0050.00519.25
8.2.80.0000.00817.97
8.2.70.0120.00017.25
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0040.00419.88
8.2.30.0080.00018.14
8.2.20.0030.00517.69
8.2.10.0000.00717.95
8.2.00.0080.00017.64
8.1.280.0130.00725.92
8.1.270.0030.00622.10
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0100.00023.92
8.1.230.0100.00017.70
8.1.220.0000.00817.76
8.1.210.0040.00418.77
8.1.200.0090.00017.48
8.1.190.0050.00317.25
8.1.180.0000.00918.10
8.1.170.0070.00318.41
8.1.160.0040.00421.95
8.1.150.0000.00718.78
8.1.140.0060.00317.35
8.1.130.0070.00017.84
8.1.120.0070.00017.38
8.1.110.0040.00417.36
8.1.100.0050.00317.49
8.1.90.0030.00617.45
8.1.80.0000.00717.43
8.1.70.0030.00317.45
8.1.60.0030.00517.62
8.1.50.0030.00517.40
8.1.40.0000.00817.43
8.1.30.0000.00817.68
8.1.20.0050.00217.60
8.1.10.0000.00717.55
8.1.00.0030.00517.55
8.0.300.0060.00318.77
8.0.290.0080.00016.75
8.0.280.0000.00718.36
8.0.270.0000.00816.85
8.0.260.0000.00617.27
8.0.250.0000.00716.87
8.0.240.0030.00317.05
8.0.230.0030.00316.92
8.0.220.0000.00716.96
8.0.210.0070.00016.96
8.0.200.0000.00716.97
8.0.190.0000.00717.04
8.0.180.0000.00716.99
8.0.170.0040.00416.98
8.0.160.0000.00816.95
8.0.150.0040.00416.88
8.0.140.0030.00316.86
8.0.130.0000.00713.43
8.0.120.0020.00516.77
8.0.110.0030.00516.83
8.0.100.0000.00816.93
8.0.90.0000.00816.77
8.0.80.0070.01016.91
8.0.70.0040.00416.72
8.0.60.0030.00516.95
8.0.50.0040.00416.97
8.0.30.0100.01017.11
8.0.20.0080.01117.40
8.0.10.0040.00416.96
8.0.00.0110.00616.67
7.4.330.0000.00515.02
7.4.320.0060.00016.54
7.4.300.0000.00716.57
7.4.290.0000.00716.58
7.4.280.0040.00416.59
7.4.270.0030.00316.60
7.4.260.0000.00716.55
7.4.250.0030.00316.60
7.4.240.0050.00216.52
7.4.230.0000.00816.52
7.4.220.0070.01116.54
7.4.210.0030.01416.56
7.4.200.0000.00716.52
7.4.160.0110.00416.45
7.4.150.0040.01317.40
7.4.140.0130.00517.86
7.4.130.0080.01116.54
7.4.120.0050.01416.56
7.4.110.0070.01016.33
7.4.100.0040.01316.55
7.4.90.0100.00716.57
7.4.80.0030.01419.39
7.4.70.0090.00916.53
7.4.60.0000.01516.61
7.4.50.0000.00916.33
7.4.40.0000.01716.54
7.4.30.0120.00916.56
7.4.10.0110.00716.23
7.4.00.0050.01115.50
7.3.330.0000.00613.15
7.3.320.0030.00213.30
7.3.310.0040.00416.35
7.3.300.0030.00316.20
7.3.290.0090.00716.27
7.3.280.0110.00716.34
7.3.270.0090.00917.40
7.3.260.0120.00616.43
7.3.250.0110.00716.36
7.3.240.0070.01016.29
7.3.230.0060.01016.66
7.3.210.0130.01016.59
7.3.200.0130.00319.39
7.3.190.0070.01016.71
7.3.180.0060.01016.40
7.3.170.0130.00316.41
7.3.160.0120.00316.64
7.3.130.0130.00316.54
7.3.120.0080.00816.52
7.3.110.0040.01116.46
7.3.100.0000.01416.38
7.3.90.0070.00416.45
7.3.80.0060.00916.45
7.3.70.0040.00716.16
7.3.60.0040.00816.29
7.3.50.0030.01116.38
7.3.40.0000.00816.37
7.3.30.0030.01016.35
7.3.20.0040.01118.13
7.3.10.0060.00717.22
7.3.00.0100.00217.38
7.2.330.0090.01616.78
7.2.320.0100.00716.69
7.2.310.0160.00716.55
7.2.300.0030.01316.66
7.2.290.0060.01516.66
7.2.260.0040.01416.70
7.2.250.0040.01416.63
7.2.240.0070.00716.66
7.2.230.0000.01416.45
7.2.220.0070.00716.77
7.2.210.0000.01316.57
7.2.200.0030.01116.76
7.2.190.0080.00816.46
7.2.180.0060.00616.68
7.2.170.0050.00516.58
7.2.160.0040.00416.64
7.2.150.0000.01418.48
7.2.140.0120.00318.44
7.2.130.0070.00717.49
7.2.120.0070.01017.45
7.2.110.0060.00817.55
7.2.100.0050.01117.56
7.2.90.0100.00517.66
7.2.80.0050.00617.07
7.2.70.0050.00917.62
7.2.60.0060.01017.78
7.2.50.0130.00217.63
7.2.40.0040.01117.67
7.2.30.0070.00917.65
7.2.20.0120.00517.42
7.2.10.0030.01217.51
7.2.00.0060.01118.31
7.1.330.0090.00917.45
7.1.320.0030.01017.22
7.1.310.0100.00317.42
7.1.300.0030.00717.25
7.1.290.0040.00717.24
7.1.280.0050.00517.34
7.1.270.0000.00817.21
7.1.260.0030.01017.46
7.1.250.0020.01216.29
7.1.240.0070.00717.43
7.1.230.0070.01017.36
7.1.220.0090.00317.19
7.1.210.0030.01017.27
7.1.200.0030.01116.58
7.1.190.0110.00417.33
7.1.180.0120.00017.19
7.1.170.0000.01217.19
7.1.160.0050.00317.21
7.1.150.0070.00717.35
7.1.140.0070.00317.05
7.1.130.0030.01017.21
7.1.120.0060.00317.20
7.1.110.0060.00317.38
7.1.100.0020.01017.87
7.1.90.0090.00017.45
7.1.80.0030.01417.18
7.1.70.0050.00917.32
7.1.60.0050.01118.16
7.1.50.0030.01417.03
7.1.40.0050.00317.27
7.1.30.0040.00817.38
7.1.20.0060.00917.15
7.1.10.0000.01117.16
7.1.00.0050.03819.86
7.0.330.0090.00616.92
7.0.320.0050.00817.03
7.0.310.0040.00817.11
7.0.300.0000.01017.01
7.0.290.0040.00717.17
7.0.280.0000.01217.03
7.0.270.0040.00716.93
7.0.260.0040.00716.93
7.0.250.0030.01017.27
7.0.240.0030.00717.26
7.0.230.0060.00617.04
7.0.220.0000.01716.84
7.0.210.0040.00817.10
7.0.200.0040.00717.03
7.0.190.0060.00617.08
7.0.180.0090.00317.02
7.0.170.0060.00316.89
7.0.160.0080.00517.06
7.0.150.0090.00017.05
7.0.140.0020.04119.57
7.0.130.0060.00817.07
7.0.120.0070.00717.10
7.0.110.0030.00617.13
7.0.100.0000.00816.97
7.0.90.0000.00817.01
7.0.80.0030.00916.93
7.0.70.0040.00417.06
7.0.60.0050.03218.41
7.0.50.0080.02017.39
7.0.40.0050.02317.54
7.0.30.0150.04317.56
7.0.20.0240.03917.53
7.0.10.0050.03017.53
7.0.00.0030.02517.59
5.6.400.0120.00415.82
5.6.390.0060.00615.86
5.6.380.0030.01016.13
5.6.370.0080.00815.85
5.6.360.0000.01415.91
5.6.350.0050.00315.95
5.6.340.0000.00916.03
5.6.330.0030.00716.00
5.6.320.0030.00616.19
5.6.310.0070.00416.24
5.6.300.0080.00416.00
5.6.290.0120.00016.01
5.6.280.0050.03818.27
5.6.270.0030.01015.99
5.6.260.0070.00715.93
5.6.250.0060.00315.72
5.6.240.0060.00315.88
5.6.230.0090.00915.69
5.6.220.0070.00815.99
5.6.210.0100.04318.28
5.6.200.0020.04517.01
5.6.190.0030.03918.03
5.6.180.1640.02018.19
5.6.170.0140.02918.37
5.6.160.0050.02318.25
5.6.150.0050.03816.97
5.6.140.0030.02516.96
5.6.130.0090.03416.90
5.6.120.0080.04518.48
5.6.110.0070.04518.39
5.6.100.0030.02818.39
5.6.90.0040.02918.50
5.6.80.0070.03818.18
5.6.70.0030.04618.24
5.6.60.0070.00715.86
5.6.50.0080.00315.77
5.6.40.0030.00516.08
5.6.30.0060.00315.80
5.6.20.0060.00616.13
5.6.10.0040.01415.68
5.6.00.0060.00915.97
5.5.380.0000.01316.05
5.5.370.0060.00615.78
5.5.360.0030.01015.77
5.5.350.0020.04718.25
5.5.340.0040.04216.92
5.5.330.0050.05317.99
5.5.320.1600.02018.21
5.5.310.0210.03318.06
5.5.300.0050.04716.75
5.5.290.0030.02316.88
5.5.280.0150.01918.27
5.5.270.0090.02718.27
5.5.260.0070.04218.33
5.5.250.0100.04118.23
5.5.240.0110.04117.99
5.5.230.0070.00715.74
5.5.220.0000.01615.76
5.5.210.0000.00815.77
5.5.200.0100.00315.81
5.5.190.0080.00415.72
5.5.180.0040.00415.57
5.5.170.0030.00615.86
5.5.160.0130.00315.80
5.5.150.0070.00715.98
5.5.140.0060.00615.63
5.5.130.0030.00615.98
5.5.120.0030.00915.62
5.5.110.0060.00915.68
5.5.100.0060.00615.64
5.5.90.0000.01015.63
5.5.80.0030.01016.00
5.5.70.0000.01315.76
5.5.60.0160.00015.77
5.5.50.0030.01015.81
5.5.40.0000.01115.86
5.5.30.0070.00715.61
5.5.20.0070.00315.58
5.5.10.0040.00715.68
5.5.00.0060.00615.62
5.4.450.0090.03616.09
5.4.440.0050.03416.10
5.4.430.0130.03116.06
5.4.420.0350.00416.19
5.4.410.0320.00416.00
5.4.400.0370.00215.89
5.4.390.0330.00215.99
5.4.380.0330.00515.91
5.4.370.0320.00315.91
5.4.360.0330.00315.93
5.4.350.0350.00515.92
5.4.340.0060.02112.44
5.4.330.0030.00612.71
5.4.320.0040.02212.60
5.4.310.0050.02012.60
5.4.300.0060.02012.60
5.4.290.0040.02312.60
5.4.280.0050.01912.55
5.4.270.0060.01912.61
5.4.260.0060.02112.55
5.4.250.0040.02112.58
5.4.240.0060.02012.57
5.4.230.0070.01912.54
5.4.220.0060.01912.54
5.4.210.0070.01912.54
5.4.200.0060.02112.54
5.4.190.0040.02212.56
5.4.180.0050.02112.54
5.4.170.0050.02212.54
5.4.160.0070.01912.54
5.4.150.0060.02012.54
5.4.140.0020.02312.38
5.4.130.0020.02512.38
5.4.120.0010.02512.36
5.4.110.0040.01912.36
5.4.100.0070.01812.36
5.4.90.0050.02212.36
5.4.80.0040.02112.36
5.4.70.0050.02012.37
5.4.60.0070.01912.35
5.4.50.0070.02112.35
5.4.40.0060.01912.37
5.4.30.0090.01512.35
5.4.20.0040.02112.37
5.4.10.0070.01812.35
5.4.00.0060.02012.13
5.3.290.0060.03912.80
5.3.280.0080.03612.71
5.3.270.0050.04012.73
5.3.260.0060.03912.72
5.3.250.0100.03312.72
5.3.240.0110.03312.72
5.3.230.0080.05112.71
5.3.220.0080.04612.68
5.3.210.0050.04012.68
5.3.200.0050.03712.68
5.3.190.0070.03512.68
5.3.180.0050.03812.67
5.3.170.0090.03312.67
5.3.160.0030.03912.68
5.3.150.0090.03312.67
5.3.140.0060.03612.66
5.3.130.0040.04112.66
5.3.120.0070.03912.66
5.3.110.0020.04212.66
5.3.100.0100.03312.13
5.3.90.0100.03612.11
5.3.80.0070.03912.11
5.3.70.0060.03512.10
5.3.60.0060.03512.09
5.3.50.0080.03312.04
5.3.40.0120.03012.04
5.3.30.0070.03311.99
5.3.20.0080.03311.77
5.3.10.0060.03311.74
5.3.00.0040.03811.73
5.2.170.0050.0309.23
5.2.160.0050.0289.23
5.2.150.0060.0289.23
5.2.140.0040.0309.23
5.2.130.0040.0299.19
5.2.120.0060.0279.19
5.2.110.0050.0289.19
5.2.100.0030.0309.18
5.2.90.0040.0309.18
5.2.80.0080.0289.18
5.2.70.0050.0329.18
5.2.60.0140.0229.14
5.2.50.0070.0299.11
5.2.40.0130.0219.08
5.2.30.0050.0299.05
5.2.20.0050.0289.04
5.2.10.0100.0318.95
5.2.00.0050.0408.82
5.1.60.0040.0268.10
5.1.50.0040.0258.10
5.1.40.0050.0248.08
5.1.30.0040.0278.42
5.1.20.0020.0298.45
5.1.10.0030.0288.18
5.1.00.0040.0268.17
5.0.50.0050.0196.65
5.0.40.0020.0236.52
5.0.30.0060.0316.32
5.0.20.0020.0216.29
5.0.10.0050.0206.27
5.0.00.0030.0306.27
4.4.90.0010.0174.78
4.4.80.0040.0144.76
4.4.70.0020.0164.76
4.4.60.0040.0144.76
4.4.50.0010.0174.77
4.4.40.0040.0244.71
4.4.30.0040.0144.76
4.4.20.0020.0164.85
4.4.10.0040.0154.85
4.4.00.0020.0254.76
4.3.110.0050.0134.67
4.3.100.0040.0144.66
4.3.90.0040.0144.63
4.3.80.0040.0254.58
4.3.70.0020.0174.63
4.3.60.0050.0124.63
4.3.50.0050.0134.63
4.3.40.0040.0224.53
4.3.30.0020.0153.30
4.3.20.0010.0173.28
4.3.10.0010.0163.23
4.3.00.0070.0207.89

preferences:
42.75 ms | 401 KiB | 5 Q