3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Author { private $name; private $id; public function __construct($id) { $this->id = $id; $this->name = null; } public function name() { return $this->name; } public function setName($name) { $this->name = $name; } public function id() { return $this->id; } public function __call($name, $value) { echo 'we dont have all the pieces, look em up'; die; } } class Post { private $id; private $title; private $body; private $author; public function __construct($id, $title, $body, $author) { $this->id = $id; $this->title = $title; $this->body = $body; $this->author = $author; } public function id() { return $this->id; } public function title() { return $this->title; } public function setTitle($title) { $this->title = $title; } public function author() { return $this->author; } public function setAuthor(Author $author) { $this->author = $author; } } $post = new Post(111, 'A Song of Ice and Fire', 'My book is the shiz', new Author(222, 'George RR Martin')); echo $post->author()->name;

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.00616.88
8.3.50.0090.01122.98
8.3.40.0100.01018.97
8.3.30.0040.01119.17
8.3.20.0070.00020.13
8.3.10.0040.00421.77
8.3.00.0000.00919.43
8.2.180.0140.00416.88
8.2.170.0170.00322.96
8.2.160.0140.00020.34
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0060.00321.10
8.2.110.0070.00319.38
8.2.100.0160.00017.84
8.2.90.0000.00819.27
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0080.00017.92
8.2.50.0040.00418.10
8.2.40.0070.00020.42
8.2.30.0040.00417.95
8.2.20.0030.00517.74
8.2.10.0040.00418.18
8.2.00.0040.00417.65
8.1.280.0150.00325.92
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.92
8.1.230.0060.00617.70
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.22
8.1.190.0060.00317.51
8.1.180.0030.00518.10
8.1.170.0040.00418.90
8.1.160.0000.00722.16
8.1.150.0000.00718.77
8.1.140.0070.00017.32
8.1.130.0000.00717.75
8.1.120.0000.00717.49
8.1.110.0080.00017.31
8.1.100.0050.00317.35
8.1.90.0000.00717.44
8.1.80.0030.00517.32
8.1.70.0000.00717.42
8.1.60.0080.00017.51
8.1.50.0030.00617.60
8.1.40.0030.00617.61
8.1.30.0060.00317.56
8.1.20.0000.00717.68
8.1.10.0020.00517.46
8.1.00.0040.00417.55
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0070.00018.28
8.0.270.0030.00317.19
8.0.260.0030.00318.40
8.0.250.0000.00717.02
8.0.240.0040.00416.88
8.0.230.0000.00716.96
8.0.220.0000.00716.91
8.0.210.0040.00416.93
8.0.200.0000.00716.86
8.0.190.0030.00416.93
8.0.180.0000.00716.93
8.0.170.0040.00416.84
8.0.160.0080.00016.91
8.0.150.0050.00316.91
8.0.140.0070.00416.78
8.0.130.0030.00313.40
8.0.120.0080.00016.79
8.0.110.0040.00416.82
8.0.100.0000.00716.86
8.0.90.0030.00516.80
8.0.80.0100.00716.92
8.0.70.0040.00417.00
8.0.60.0000.00716.91
8.0.50.0040.00416.98
8.0.30.0100.01017.07
8.0.20.0110.00917.40
8.0.10.0040.00417.03
8.0.00.0080.01316.84
7.4.330.0030.00315.00
7.4.320.0000.00716.63
7.4.300.0030.00316.62
7.4.290.0040.00416.55
7.4.280.0000.00716.61
7.4.270.0050.00216.52
7.4.260.0000.00816.60
7.4.250.0050.00316.54
7.4.240.0030.00316.58
7.4.230.0000.00716.73
7.4.220.0170.00016.59
7.4.210.0060.00916.47
7.4.200.0000.00716.61
7.4.160.0070.01016.53
7.4.150.0110.00717.40
7.4.140.0060.01317.86
7.4.130.0040.01416.52
7.4.120.0090.00816.47
7.4.110.0120.00416.52
7.4.100.0100.00716.49
7.4.90.0070.01516.54
7.4.80.0030.02119.39
7.4.70.0120.00616.43
7.4.60.0090.00916.58
7.4.50.0000.00516.75
7.4.40.0060.01016.27
7.4.30.0060.01116.64
7.4.10.0070.01214.99
7.4.00.0060.01115.08
7.3.330.0060.00013.27
7.3.320.0000.00513.22
7.3.310.0030.00316.41
7.3.300.0000.00716.37
7.3.290.0080.01216.37
7.3.280.0070.00916.38
7.3.270.0030.01517.40
7.3.260.0070.01716.43
7.3.240.0030.01716.45
7.3.230.0160.00316.54
7.3.210.0090.00916.45
7.3.200.0090.00919.39
7.3.190.0140.00716.49
7.3.180.0040.01216.55
7.3.170.0140.00316.55
7.3.160.0060.01016.40
7.3.130.0100.00714.65
7.3.120.0080.00714.79
7.3.110.0060.01114.74
7.3.100.0090.00714.84
7.3.90.0050.00914.78
7.3.80.0050.00714.83
7.3.70.0030.01314.74
7.3.60.0080.00514.87
7.3.50.0050.00614.91
7.3.40.0040.01014.81
7.3.30.0070.00714.83
7.3.20.0070.00616.67
7.3.10.0090.00416.72
7.3.00.0050.00916.66
7.2.330.0180.00416.72
7.2.320.0080.00816.84
7.2.310.0030.01316.46
7.2.300.0130.00316.71
7.2.290.0130.00316.54
7.2.260.0050.01214.80
7.2.250.0090.00915.00
7.2.240.0040.01314.97
7.2.230.0030.01215.05
7.2.220.0050.01114.95
7.2.210.0090.00414.97
7.2.200.0060.00814.94
7.2.190.0060.00815.09
7.2.180.0060.00814.83
7.2.170.0040.00914.87
7.2.160.0060.01114.93
7.2.150.0070.00617.02
7.2.140.0050.00816.89
7.2.130.0050.00916.92
7.2.120.0030.01016.84
7.2.110.0060.00716.82
7.2.100.0050.00716.75
7.2.90.0060.00916.79
7.2.80.0050.00716.77
7.2.70.0040.00917.03
7.2.60.0070.00516.99
7.2.50.0040.01216.90
7.2.40.0070.00716.77
7.2.30.0040.00816.90
7.2.20.0080.00416.85
7.2.10.0050.00617.03
7.2.00.0030.00916.91
7.1.330.0050.01115.74
7.1.320.0020.01215.56
7.1.310.0040.00815.75
7.1.300.0070.00715.57
7.1.290.0030.01015.68
7.1.280.0060.00615.63
7.1.270.0100.00415.55
7.1.260.0080.00515.63
7.1.250.0070.00715.77
7.1.240.0050.00715.55
7.1.230.0070.00715.63
7.1.220.0070.00915.84
7.1.210.0060.00715.59
7.1.200.0050.00615.61
7.1.190.0000.01015.50
7.1.180.0030.01215.50
7.1.170.0050.00615.61
7.1.160.0030.00815.76
7.1.150.0060.00715.76
7.1.140.0100.00315.54
7.1.130.0040.00815.70
7.1.120.0070.00915.66
7.1.110.0050.00815.54
7.1.100.0050.00915.70
7.1.90.0030.00715.56
7.1.80.0040.00915.78
7.1.70.0060.00516.22
7.1.60.0080.00917.03
7.1.50.0070.01016.09
7.1.40.0080.00415.82
7.1.30.0030.00915.73
7.1.20.0070.00715.64
7.1.10.0020.01215.48
7.1.00.0040.03017.87
7.0.330.0090.00715.42
7.0.320.0040.00815.45
7.0.310.0070.00415.35
7.0.300.0070.00515.25
7.0.290.0070.00715.44
7.0.280.0040.01015.33
7.0.270.0100.00315.31
7.0.260.0080.00315.37
7.0.250.0050.00715.27
7.0.240.0050.00915.35
7.0.230.0080.00515.53
7.0.220.0060.00615.42
7.0.210.0060.00815.32
7.0.200.0030.00615.70
7.0.190.0090.00515.45
7.0.180.0070.00715.46
7.0.170.0030.01215.28
7.0.160.0060.00815.27
7.0.150.0050.00815.15
7.0.140.0070.02917.61
7.0.130.0050.00715.47
7.0.120.0040.01115.31
7.0.110.0060.00815.38
7.0.100.0050.00715.26
7.0.90.0070.00715.36
7.0.80.0080.00815.42
7.0.70.0060.00815.22
7.0.60.0060.03116.95
7.0.50.0020.02216.26
7.0.40.0050.03215.61
7.0.30.0150.03015.51
7.0.20.0090.02115.65
7.0.10.0090.03115.70
7.0.00.0050.02115.71
5.6.400.0080.00614.24
5.6.390.0050.00814.34
5.6.380.0030.01014.22
5.6.370.0050.00514.58
5.6.360.0050.00914.43
5.6.350.0060.00814.46
5.6.340.0010.01114.68
5.6.330.0090.00614.41
5.6.320.0030.00914.44
5.6.310.0030.01114.15
5.6.300.0020.01014.22
5.6.290.0070.00714.55
5.6.280.0050.03016.60
5.6.270.0110.00314.39
5.6.260.0080.00514.17
5.6.250.0060.00814.57
5.6.240.0050.00814.35
5.6.230.0120.00614.36
5.6.220.0050.00814.50
5.6.210.0070.02916.40
5.6.200.0070.02815.72
5.6.190.0010.03816.53
5.6.180.1460.02016.31
5.6.170.0090.02216.39
5.6.160.0080.03116.43
5.6.150.0060.02015.86
5.6.140.0070.02515.61
5.6.130.0030.02215.67
5.6.120.0050.02116.50
5.6.110.0070.02216.56
5.6.100.0110.02816.59
5.6.90.0050.03016.57
5.6.80.0080.02316.33
5.6.70.0130.02516.29
5.6.60.0110.00514.35
5.6.50.0050.00914.24
5.6.40.0050.00714.24
5.6.30.0110.00714.45
5.6.20.0110.00414.33
5.6.10.0060.00714.37
5.6.00.0100.00314.19
5.5.380.0070.00714.13
5.5.370.0020.00914.29
5.5.360.0040.00814.25
5.5.350.0030.03316.33
5.5.340.0080.03115.42
5.5.330.0030.02516.19
5.5.320.0100.01616.20
5.5.310.0150.03116.31
5.5.300.0060.01815.60
5.5.290.0080.02415.54
5.5.280.0110.01416.46
5.5.270.0050.01916.50
5.5.260.0070.02316.39
5.5.250.0060.03216.37
5.5.240.0040.03216.19
5.5.230.0030.01014.30
5.5.220.0030.01014.28
5.5.210.0070.00614.02
5.5.200.0020.01213.96
5.5.190.0050.01114.26
5.5.180.0060.01114.18
5.5.170.0060.00314.16
5.5.160.0090.00614.41
5.5.150.0020.01014.30
5.5.140.0050.00914.28
5.5.130.0080.00514.02
5.5.120.0060.00814.09
5.5.110.0050.01214.31
5.5.100.0050.00514.20
5.5.90.0080.00414.10
5.5.80.0040.00914.33
5.5.70.0000.01014.13
5.5.60.0030.01214.02
5.5.50.0030.01014.22
5.5.40.0030.00714.40
5.5.30.0060.00614.24
5.5.20.0060.00914.15
5.5.10.0050.01014.15
5.5.00.0060.00914.19
5.4.450.0240.02713.88
5.4.440.0330.01813.79
5.4.430.0310.02113.75
5.4.420.0240.02114.00
5.4.410.0360.01713.79
5.4.400.0820.02213.54
5.4.390.0160.02213.56
5.4.380.0100.03113.53
5.4.370.0050.01813.47
5.4.360.0060.01613.53
5.4.350.0020.01911.38
5.4.340.0060.01811.40
5.4.330.0040.00610.79
5.4.320.0050.01511.68
5.4.310.0030.01811.56
5.4.300.0010.01711.50
5.4.290.0050.01711.60
5.4.280.0050.01911.46
5.4.270.0050.01511.40
5.4.260.0040.01611.41
5.4.250.0060.01611.49
5.4.240.0070.01511.48
5.4.230.0060.01611.54
5.4.220.0040.01711.52
5.4.210.0050.01511.45
5.4.200.0040.01511.46
5.4.190.0050.01511.45
5.4.180.0050.01711.43
5.4.170.0070.01711.46
5.4.160.0060.01611.45
5.4.150.0030.01811.39
5.4.140.0040.01711.36
5.4.130.0040.01711.28
5.4.120.0060.01611.38
5.4.110.0030.01611.33
5.4.100.0070.01411.24
5.4.90.0040.01811.38
5.4.80.0050.01811.27
5.4.70.0050.01511.34
5.4.60.0060.01311.35
5.4.50.0020.01711.30
5.4.40.0050.01311.45
5.4.30.0040.01911.29
5.4.20.0030.01711.38
5.4.10.0070.01511.32
5.4.00.0040.01711.12
5.3.290.0050.01911.49
5.3.280.0020.02011.21
5.3.270.0040.01911.35
5.3.260.0060.01511.34
5.3.250.0050.01611.34
5.3.240.0040.01711.19
5.3.230.0040.01611.31
5.3.220.0030.01911.18
5.3.210.0050.01711.21
5.3.200.0070.01411.22
5.3.190.0070.01311.29
5.3.180.0010.01711.35
5.3.170.0030.01711.37
5.3.160.0050.01611.33
5.3.150.0050.01711.35
5.3.140.0030.01811.33
5.3.130.0060.01711.32
5.3.120.0040.01811.31
5.3.110.0080.01611.23
5.3.100.0050.01611.07
5.3.90.0030.01811.21
5.3.80.0050.01611.11
5.3.70.0060.01811.01
5.3.60.0030.01811.11
5.3.50.0050.01911.14
5.3.40.0050.01911.10
5.3.30.0070.01511.04
5.3.20.0050.01610.92
5.3.10.0050.01410.92
5.3.00.0070.01610.92
5.2.170.0040.0319.25
5.2.160.0030.0309.24
5.2.150.0040.0369.25
5.2.140.0040.0349.24
5.2.130.0050.0289.20
5.2.120.0050.0359.20
5.2.110.0070.0309.21
5.2.100.0050.0299.20
5.2.90.0040.0319.20
5.2.80.0070.0439.20
5.2.70.0030.0379.20
5.2.60.0040.0309.15
5.2.50.0060.0299.12
5.2.40.0030.0299.10
5.2.30.0070.0329.07
5.2.20.0050.0309.05
5.2.10.0020.0308.96
5.2.00.0070.0348.83
5.1.60.0060.0308.12
5.1.50.0040.0308.11
5.1.40.0070.0288.09
5.1.30.0030.0278.44
5.1.20.0050.0318.46
5.1.10.0040.0268.19
5.1.00.0020.0288.19
5.0.50.0040.0246.67
5.0.40.0050.0176.53
5.0.30.0060.0346.34
5.0.20.0040.0196.30
5.0.10.0050.0186.29
5.0.00.0050.0366.28
4.4.90.0030.0234.78
4.4.80.0050.0184.75
4.4.70.0040.0184.76
4.4.60.0050.0164.75
4.4.50.0030.0154.77
4.4.40.0020.0274.71
4.4.30.0030.0154.76
4.4.20.0030.0154.84
4.4.10.0030.0154.85
4.4.00.0030.0254.76
4.3.110.0040.0144.67
4.3.100.0030.0154.66
4.3.90.0050.0184.63
4.3.80.0050.0254.58
4.3.70.0040.0134.63
4.3.60.0020.0154.63
4.3.50.0030.0144.63
4.3.40.0030.0234.54
4.3.30.0030.0153.30
4.3.20.0020.0153.28
4.3.10.0010.0163.23
4.3.00.0100.0237.20

preferences:
47.87 ms | 401 KiB | 5 Q