3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Productss{ protected $title; protected $category; const CHANGES_SAVED = 'Wijzigingen opgeslagen'; public function __construct($title, $category){ $this->title = $title; $this->category = $category; } public function someFunction(){ self::CHANGES_SAVED; // CHANGES_SAVED not changeable in this class, it is changeable in a child class } public function getCategory(){ return $this->category; } public function getTitle(){ return $this->title; } } class Order extends Productss{ protected $price; protected $deliver; //const CHANGES_SAVED = 'Wijzigingen nu opgeslagen'; public function __construct($title, $category, $price){ parent::__construct($title, $category); $this->price = $price; $this->doWeDeliver(); } public function getPrice(){ return $this->price; } public function getDeliver(){ return $this->deliver; } protected function doWeDeliver(){ $this->deliver = $this->price > 30 ? 'Yes' : 'No' ; } } //$order = new Order('CD Brahms', 'Media', '45'); //echo 'Product :'.$order->getTitle(); //echo 'Categorie :'.$order->getCategory(); //echo 'Prijs :'.$order->getPrice(); //echo 'Gratis bezorging :'.$order->getDeliver(); //echo Productss::CHANGES_SAVED.'<br />'; // 300 //echo Order::CHANGES_SAVED.'<br />'; // 500 echo Order::__FILE__.'<br />'; // 500

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.0100.00316.88
8.3.50.0130.00522.10
8.3.40.0040.01118.92
8.3.30.0030.01319.04
8.3.20.0070.00020.34
8.3.10.0080.00023.52
8.3.00.0070.00322.14
8.2.180.0000.01416.88
8.2.170.0030.01422.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0180.00326.16
8.2.120.0070.00022.27
8.2.110.0000.01122.21
8.2.100.0080.00317.72
8.2.90.0080.00019.40
8.2.80.0070.00317.97
8.2.70.0030.00617.38
8.2.60.0000.00717.80
8.2.50.0000.00818.07
8.2.40.0000.00818.04
8.2.30.0000.00718.13
8.2.20.0040.00417.82
8.2.10.0030.00517.87
8.2.00.0040.00417.70
8.1.280.0130.01025.92
8.1.270.0050.00323.97
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0090.00022.62
8.1.230.0000.01118.88
8.1.220.0090.00017.79
8.1.210.0080.00018.77
8.1.200.0030.00617.22
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0080.00018.89
8.1.160.0040.00418.80
8.1.150.0070.00018.46
8.1.140.0040.00417.39
8.1.130.0030.00317.73
8.1.120.0000.00717.30
8.1.110.0050.00317.35
8.1.100.0040.00417.31
8.1.90.0000.00717.30
8.1.80.0040.00417.43
8.1.70.0030.00317.30
8.1.60.0000.01117.54
8.1.50.0000.00817.47
8.1.40.0000.00917.46
8.1.30.0030.00617.41
8.1.20.0040.00417.57
8.1.10.0000.00817.46
8.1.00.0040.00417.47
8.0.300.0080.00018.77
8.0.290.0030.00616.75
8.0.280.0000.00718.45
8.0.270.0000.00717.25
8.0.260.0040.00416.89
8.0.250.0070.00017.03
8.0.240.0000.00716.99
8.0.230.0070.00016.90
8.0.220.0000.00817.00
8.0.210.0070.00016.98
8.0.200.0030.00316.89
8.0.190.0050.00217.04
8.0.180.0040.00416.89
8.0.170.0040.00416.89
8.0.160.0000.00816.97
8.0.150.0000.00716.82
8.0.140.0050.00216.93
8.0.130.0030.00313.42
8.0.120.0000.00816.95
8.0.110.0080.00016.88
8.0.100.0000.00816.94
8.0.90.0000.00716.85
8.0.80.0070.01016.86
8.0.70.0040.00416.87
8.0.60.0070.00317.03
8.0.50.0000.00716.86
8.0.30.0110.00717.21
8.0.20.0060.01317.40
8.0.10.0070.00017.02
8.0.00.0080.01116.87
7.4.330.0000.00515.01
7.4.320.0060.00016.41
7.4.300.0030.00316.47
7.4.290.0030.00316.46
7.4.280.0040.00416.50
7.4.270.0000.00716.59
7.4.260.0070.00016.54
7.4.250.0060.00316.34
7.4.240.0030.00416.60
7.4.230.0000.00716.58
7.4.220.0090.00916.50
7.4.210.0050.00916.50
7.4.200.0050.00216.66
7.4.190.0070.00016.33
7.4.160.0120.00616.53
7.4.150.0100.01017.40
7.4.140.0070.01017.86
7.4.130.0110.00616.39
7.4.120.0120.00816.63
7.4.110.0130.00716.48
7.4.100.0090.00916.57
7.4.90.0100.00716.50
7.4.80.0090.00916.39
7.4.70.0100.00716.58
7.4.60.0100.00616.43
7.4.50.0000.00916.50
7.4.40.0090.00622.77
7.4.30.0090.01216.42
7.4.00.0060.00914.98
7.3.330.0030.00313.10
7.3.320.0060.00013.32
7.3.310.0080.00016.30
7.3.300.0000.00716.37
7.3.290.0070.01416.31
7.3.280.0090.00816.34
7.3.270.0030.01417.40
7.3.260.0140.01016.33
7.3.250.0050.01316.51
7.3.240.0180.00616.34
7.3.230.0070.01016.39
7.3.210.0070.01016.39
7.3.200.0160.00719.39
7.3.190.0110.00616.41
7.3.180.0140.00316.48
7.3.170.0060.01516.50
7.3.160.0070.01016.37
7.3.120.0040.01214.93
7.2.330.0070.01016.65
7.2.320.0130.00416.57
7.2.310.0070.01116.74
7.2.300.0130.01016.65
7.2.290.0030.01416.75
7.2.120.0040.01116.60
7.2.110.0070.00416.50
7.2.100.0070.00716.29
7.2.90.0100.00716.65
7.2.80.0040.00816.62
7.2.70.0000.01416.78
7.2.60.0050.00716.65
7.2.50.0060.00916.70
7.2.40.0060.00616.57
7.2.30.0000.01216.58
7.2.20.0040.01216.82
7.2.10.0110.00016.78
7.2.00.0070.00316.57
7.1.240.0070.00715.74
7.1.230.0060.01015.57
7.1.220.0040.00815.73
7.1.210.0030.01015.45
7.1.200.0090.00315.51
7.1.190.0080.00815.39
7.1.180.0090.00315.34
7.1.170.0000.01015.77
7.1.160.0000.01215.34
7.1.150.0090.00615.64
7.1.140.0070.00715.68
7.1.130.0080.00815.77
7.1.120.0140.00015.74
7.1.110.0060.00615.74
7.1.100.0030.00515.44
7.1.90.0060.00315.72
7.1.80.0070.01015.58
7.1.70.0030.00916.41
7.1.60.0100.00917.52
7.1.50.0050.01316.19
7.1.40.0030.01015.43
7.1.30.0030.00715.75
7.1.20.0120.00315.63
7.1.10.0000.01415.50
7.1.00.0090.04018.95
7.0.320.0110.00415.44
7.0.310.0000.01115.30
7.0.300.0040.01115.29
7.0.290.0100.00315.25
7.0.280.0060.00615.07
7.0.270.0060.00315.06
7.0.260.0060.00315.14
7.0.250.0140.00015.31
7.0.240.0040.00815.32
7.0.230.0090.00315.02
7.0.220.0030.00715.32
7.0.210.0000.01315.43
7.0.200.0050.00515.96
7.0.190.0030.00715.07
7.0.180.0110.00415.21
7.0.170.0030.01215.40
7.0.160.0050.00515.43
7.0.150.0100.00315.42
7.0.140.0060.03718.53
7.0.130.0040.00715.38
7.0.120.0040.01115.05
7.0.110.0380.03717.51
7.0.100.0230.02617.64
7.0.90.0300.03817.77
7.0.80.0260.04317.67
7.0.70.0370.04017.55
7.0.60.0330.04317.73
7.0.50.0300.04017.72
7.0.40.0070.02716.57
7.0.30.0090.04116.60
7.0.20.0020.03816.57
7.0.10.0100.04316.53
7.0.00.0030.02716.65
5.6.380.0040.01114.21
5.6.370.0100.00614.13
5.6.360.0040.00814.04
5.6.350.0120.00014.09
5.6.340.0000.01114.33
5.6.330.0030.00913.76
5.6.320.0000.01314.25
5.6.310.0040.01014.04
5.6.300.0030.00913.89
5.6.290.0040.00414.30
5.6.280.0050.04117.38
5.6.270.0060.00614.25
5.6.260.0070.04017.47
5.6.250.0030.04417.28
5.6.240.0070.04317.46
5.6.230.0100.03217.40
5.6.220.0130.03317.40
5.6.210.0100.04017.30
5.6.200.0050.04817.35
5.6.190.0050.04517.50
5.6.180.0090.04517.40
5.6.170.0110.03717.25
5.6.160.0100.04017.41
5.6.150.0020.04617.48
5.6.140.0050.02517.41
5.6.130.0070.04317.27
5.6.120.0070.03817.45
5.6.110.0060.04317.44
5.6.100.0030.03917.42
5.6.90.0050.04417.27
5.6.80.0050.04016.96
5.6.70.0020.03917.07
5.6.60.0100.04017.14
5.6.50.0100.02617.04
5.6.40.0070.03817.05
5.6.30.0050.02717.06
5.6.20.0050.02117.10
5.6.10.0070.02917.07
5.6.00.0050.04617.07
5.5.380.0060.02314.18
5.5.370.0050.04514.39
5.5.360.0030.04114.33
5.5.350.0060.02514.34
5.5.340.0080.03014.67
5.5.330.0050.04514.74
5.5.320.0040.02514.42
5.5.310.0050.04514.38
5.5.300.0030.04414.56
5.5.290.0030.04114.55
5.5.280.0080.02514.27
5.5.270.0000.04914.38
5.5.260.0020.04314.35
5.5.250.0080.03514.23
5.5.240.0060.02614.08
5.5.230.0030.03014.08
5.5.220.0050.04514.21
5.5.210.0020.02614.05
5.5.200.0040.02714.07
5.5.190.0020.02614.03
5.5.180.0050.02714.09
5.5.170.0030.01213.90
5.5.160.0050.03513.99
5.5.150.0020.04114.08
5.5.140.0050.04314.01
5.5.130.0030.04314.29
5.5.120.0070.02014.14
5.5.110.0080.04014.08
5.5.100.0050.04414.12
5.5.90.0030.03914.01
5.5.80.0080.02714.13
5.5.70.0030.04014.11
5.5.60.0080.02314.01
5.5.50.0140.03213.96
5.5.40.0070.03914.23
5.5.30.0030.04414.13
5.5.20.0030.04414.06
5.5.10.0000.04513.95
5.5.00.0050.03714.07
5.4.450.0070.02715.25
5.4.440.0040.02915.05
5.4.430.0030.03615.22
5.4.420.0030.04215.29
5.4.410.0080.02214.86
5.4.400.0080.03314.92
5.4.390.0030.03515.00
5.4.380.0110.03815.01
5.4.370.0110.03814.90
5.4.360.0090.01814.94
5.4.350.0020.03215.03
5.4.340.0070.02215.04
5.4.330.0050.00210.73
5.4.320.0040.04015.07
5.4.310.0060.04214.90
5.4.300.0020.04514.87
5.4.290.0100.03615.01
5.4.280.0050.03514.90
5.4.270.0000.03415.18
5.4.260.0130.03014.96
5.4.250.0110.03215.02
5.4.240.0050.03714.87
5.4.230.0080.03514.98
5.4.220.0080.03514.90
5.4.210.0120.03714.87
5.4.200.0140.02914.98
5.4.190.0090.04014.85
5.4.180.0080.04114.82
5.4.170.0070.04214.76
5.4.160.0100.03314.82
5.4.150.0070.04014.82
5.4.140.0060.02013.57
5.4.130.0050.02013.70
5.4.120.0050.04213.64
5.4.110.0050.02213.57
5.4.100.0080.03713.72
5.4.90.0050.02813.70
5.4.80.0030.04013.72
5.4.70.0070.03713.73
5.4.60.0070.03613.57
5.4.50.0080.03813.67
5.4.40.0070.03813.68
5.4.30.0030.04013.59
5.4.20.0060.03313.67
5.4.10.0090.03513.72
5.4.00.0060.02513.45
5.3.290.0060.02312.63
5.3.280.0020.04412.43
5.3.270.0100.03512.44
5.3.260.0110.03612.45
5.3.250.0080.03312.47
5.3.240.0030.04312.36
5.3.230.0040.02212.41
5.3.220.0050.02312.42
5.3.210.0000.04612.27
5.3.200.0030.03812.33
5.3.190.0060.03512.44
5.3.180.0050.03712.46
5.3.170.0060.04112.52
5.3.160.0060.04112.55
5.3.150.0030.02312.60
5.3.140.0090.03712.61
5.3.130.0080.03712.52
5.3.120.0080.04012.32
5.3.110.0030.04212.38
5.3.100.0070.02512.27
5.3.90.0070.04112.23
5.3.80.0050.03512.18
5.3.70.0060.02012.13
5.3.60.0070.03912.24
5.3.50.0020.03612.13
5.3.40.0080.03512.11
5.3.30.0030.02312.05
5.3.20.0060.03411.88
5.3.10.0000.02211.87
5.3.00.0020.02311.94
5.2.170.0040.03110.25
5.2.160.0080.03310.37
5.2.150.0020.03710.14
5.2.140.0020.02110.28
5.2.130.0060.02510.17
5.2.120.0020.02010.28
5.2.110.0030.01810.22
5.2.100.0020.01810.26
5.2.90.0030.01810.31
5.2.80.0040.01910.26
5.2.70.0010.01610.21
5.2.60.0030.01710.15
5.2.50.0030.01610.14
5.2.40.0020.01810.13
5.2.30.0030.01510.03
5.2.20.0030.02310.11
5.2.10.0020.0209.88
5.2.00.0020.0149.82
5.1.60.0010.0169.17
5.1.50.0040.0149.30
5.1.40.0050.0129.36
5.1.30.0000.0189.57
5.1.20.0040.0129.37
5.1.10.0000.0179.14
5.1.00.0010.0169.33
5.0.50.0000.0149.06
5.0.40.0020.0179.06
5.0.30.0010.0269.06
5.0.20.0050.0199.06
5.0.10.0020.0129.06
5.0.00.0000.0269.06
4.4.90.0000.0099.06
4.4.80.0000.0089.06
4.4.70.0020.0089.06
4.4.60.0020.0109.06
4.4.50.0000.0119.06
4.4.40.0020.0129.06
4.4.30.0030.0079.06
4.4.20.0000.0139.06
4.4.10.0020.0109.06
4.4.00.0020.0229.06
4.3.110.0020.0109.06
4.3.100.0050.0109.06
4.3.90.0020.0169.06
4.3.80.0030.0229.06
4.3.70.0040.0089.06
4.3.60.0020.0089.06
4.3.50.0010.0139.06
4.3.40.0000.0159.06
4.3.30.0020.0109.06
4.3.20.0000.0109.06
4.3.10.0020.0089.06
4.3.00.0000.0109.06

preferences:
46.62 ms | 401 KiB | 5 Q