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->title = $title; $this->category = $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

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.0170.00318.55
8.3.50.0040.01116.73
8.3.40.0150.00618.44
8.3.30.0110.00719.01
8.3.20.0000.00820.16
8.3.10.0040.00421.92
8.3.00.0040.00420.64
8.2.180.0110.00616.75
8.2.170.0150.00022.96
8.2.160.0150.00419.08
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0030.00519.67
8.2.110.0110.00021.02
8.2.100.0040.00817.84
8.2.90.0050.00319.23
8.2.80.0030.00617.97
8.2.70.0030.00517.63
8.2.60.0040.00417.93
8.2.50.0050.00318.10
8.2.40.0000.00820.55
8.2.30.0040.00418.01
8.2.20.0080.00017.63
8.2.10.0070.00017.75
8.2.00.0040.00417.80
8.1.270.0080.00022.01
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0100.00021.25
8.1.230.0060.00617.56
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0000.00917.35
8.1.180.0050.00318.10
8.1.170.0050.00518.64
8.1.160.0040.00422.15
8.1.150.0000.00818.57
8.1.140.0040.00417.33
8.1.130.0000.00717.79
8.1.120.0050.00217.36
8.1.110.0040.00417.34
8.1.100.0040.00417.29
8.1.90.0030.00517.36
8.1.80.0000.00817.36
8.1.70.0000.00717.41
8.1.60.0040.00417.45
8.1.50.0060.00317.49
8.1.40.0040.00417.52
8.1.30.0040.00417.69
8.1.20.0000.00817.65
8.1.10.0070.00017.65
8.1.00.0070.00017.53
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.47
8.0.270.0070.00017.28
8.0.260.0000.00616.75
8.0.250.0070.00016.96
8.0.240.0000.00816.96
8.0.230.0030.00316.92
8.0.220.0040.00216.79
8.0.210.0000.00816.89
8.0.200.0070.00016.80
8.0.190.0100.00016.97
8.0.180.0000.00816.79
8.0.170.0000.00816.98
8.0.160.0050.00316.89
8.0.150.0070.00016.83
8.0.140.0000.00716.88
8.0.130.0000.00613.32
8.0.120.0040.00416.90
8.0.110.0000.00816.91
8.0.100.0070.00016.80
8.0.90.0040.00416.97
8.0.80.0090.01316.91
8.0.70.0070.00016.91
8.0.60.0000.00716.81
8.0.50.0050.00216.94
8.0.30.0100.00917.06
8.0.20.0060.01117.40
8.0.10.0040.00417.09
8.0.00.0120.00716.78
7.4.330.0030.00315.00
7.4.320.0000.00816.50
7.4.300.0000.00616.50
7.4.290.0000.00716.49
7.4.280.0000.00716.49
7.4.270.0030.00316.51
7.4.260.0000.00716.61
7.4.250.0020.00516.55
7.4.240.0030.00416.50
7.4.230.0030.00316.65
7.4.220.0140.00316.69
7.4.210.0080.01016.59
7.4.200.0000.00716.70
7.4.190.0060.00316.48
7.4.160.0140.00416.57
7.4.150.0040.01617.40
7.4.140.0050.01217.86
7.4.130.0050.01416.56
7.4.120.0080.00816.42
7.4.110.0130.00716.74
7.4.100.0120.00916.54
7.4.90.0040.01316.44
7.4.80.0030.01319.39
7.4.70.0130.00616.24
7.4.60.0070.01016.50
7.4.50.0050.00016.22
7.4.40.0090.00622.77
7.4.30.0200.00316.38
7.4.00.0030.01414.79
7.3.330.0000.00513.24
7.3.320.0030.00313.13
7.3.310.0040.00416.21
7.3.300.0070.00016.28
7.3.290.0060.01216.34
7.3.280.0070.01116.32
7.3.270.0060.01117.40
7.3.260.0250.00316.57
7.3.250.0060.01316.41
7.3.240.0090.01016.40
7.3.230.0080.01016.39
7.3.210.0070.01016.60
7.3.200.0060.01719.39
7.3.190.0000.01716.52
7.3.180.0040.01216.66
7.3.170.0130.00316.38
7.3.160.0060.01016.41
7.3.120.0000.01314.75
7.3.10.0040.01116.77
7.3.00.0070.00716.58
7.2.330.0100.00716.87
7.2.320.0100.01016.47
7.2.310.0100.00716.68
7.2.300.0110.00716.57
7.2.290.0070.01016.60
7.2.130.0120.00616.75
7.2.120.0000.00817.05
7.2.110.0100.00316.57
7.2.100.0060.00616.92
7.2.90.0060.01017.15
7.2.80.0040.01116.80
7.2.70.0120.00616.61
7.2.60.0070.01216.99
7.2.50.0060.00816.96
7.2.40.0060.00916.96
7.2.30.0070.00716.79
7.2.20.0040.01116.64
7.2.10.0050.00316.91
7.2.00.0050.00818.03
7.1.250.0130.00315.66
7.1.240.0030.01015.80
7.1.230.0040.00415.69
7.1.220.0030.01315.49
7.1.210.0100.00715.43
7.1.200.0060.00215.46
7.1.190.0060.00315.69
7.1.180.0070.00715.57
7.1.170.0090.00315.64
7.1.160.0030.00615.49
7.1.150.0100.00315.67
7.1.140.0070.00315.76
7.1.130.0030.01015.51
7.1.120.0040.01115.75
7.1.110.0070.00715.71
7.1.100.0590.00014.97
7.1.90.0030.01015.72
7.1.80.0090.00015.75
7.1.70.0030.00916.44
7.1.60.0050.01217.71
7.1.50.0060.01516.06
7.1.40.0030.00915.85
7.1.30.0030.00515.68
7.1.20.0080.00815.66
7.1.10.0100.01015.90
7.1.00.0070.03719.25
7.0.330.0030.00515.40
7.0.320.0060.00315.04
7.0.310.0100.00315.62
7.0.300.0000.00715.26
7.0.290.0060.00915.14
7.0.280.0000.01115.07
7.0.270.0100.00315.21
7.0.260.0000.01115.49
7.0.250.0000.01315.53
7.0.240.0030.01215.41
7.0.230.0030.01015.47
7.0.220.0060.00615.31
7.0.210.0110.00415.40
7.0.200.0040.00616.18
7.0.190.0040.00915.23
7.0.180.0040.00715.05
7.0.170.0140.00015.24
7.0.160.0090.00315.57
7.0.150.0090.00015.47
7.0.140.0050.03518.80
7.0.130.0030.01015.27
7.0.120.0060.00615.52
7.0.110.0060.04817.68
7.0.100.0060.04717.76
7.0.90.0050.05017.71
7.0.80.0050.04817.61
7.0.70.0070.04417.69
7.0.60.0060.04217.48
7.0.50.0050.04717.87
7.0.40.0090.04216.78
7.0.30.0130.04216.72
7.0.20.0060.03216.58
7.0.10.0100.02516.90
7.0.00.0050.02516.88
5.6.380.0090.00314.26
5.6.370.0070.00214.66
5.6.360.0090.00014.42
5.6.350.0130.00314.27
5.6.340.0080.00414.36
5.6.330.0000.00814.75
5.6.320.0070.00714.30
5.6.310.0030.00914.05
5.6.300.0030.01214.48
5.6.290.0000.01414.61
5.6.280.0070.03717.81
5.6.270.0000.00914.48
5.6.260.0050.04317.54
5.6.250.0070.04517.52
5.6.240.0030.04517.50
5.6.230.0080.04517.47
5.6.220.0020.04817.40
5.6.210.0060.04617.64
5.6.200.0110.03217.78
5.6.190.0120.04217.69
5.6.180.0130.04317.75
5.6.170.0120.04217.73
5.6.160.0070.02717.64
5.6.150.0150.02417.51
5.6.140.0140.03117.60
5.6.130.0100.02817.74
5.6.120.0190.02117.85
5.6.110.0170.04017.69
5.6.100.0150.02417.65
5.6.90.0060.04217.75
5.6.80.0090.03417.47
5.6.70.0080.03917.34
5.6.60.0050.02217.54
5.6.50.0020.03817.38
5.6.40.0080.03617.37
5.6.30.0090.02217.40
5.6.20.0120.02217.55
5.6.10.0060.04517.39
5.6.00.0060.02317.36
5.5.380.0070.04315.91
5.5.370.0080.03715.82
5.5.360.0070.03516.09
5.5.350.0080.04515.67
5.5.340.0070.04016.18
5.5.330.0080.04215.92
5.5.320.0140.03616.09
5.5.310.0130.03516.01
5.5.300.0160.02015.81
5.5.290.0170.01815.96
5.5.280.0040.03015.90
5.5.270.0060.02616.14
5.5.260.0070.03916.13
5.5.250.0030.03516.03
5.5.240.0070.03715.64
5.5.230.0060.02315.74
5.5.220.0070.04015.80
5.5.210.0070.02315.79
5.5.200.0020.02615.76
5.5.190.0050.02415.69
5.5.180.0080.02115.66
5.5.170.0030.01011.07
5.5.160.0030.02215.79
5.5.150.0070.02215.59
5.5.140.0020.03015.63
5.5.130.0050.02015.82
5.5.120.0060.02015.72
5.5.110.0050.02215.61
5.5.100.0060.02015.74
5.5.90.0050.02215.68
5.5.80.0000.02615.48
5.5.70.0070.02115.65
5.5.60.0050.02315.75
5.5.50.0050.02315.72
5.5.40.0030.02215.51
5.5.30.0100.02015.48
5.5.20.0070.02115.61
5.5.10.0090.03315.54
5.5.00.0030.04615.53
5.4.450.0040.02915.13
5.4.440.0130.02015.39
5.4.430.0080.02015.28
5.4.420.0100.02215.42
5.4.410.0070.02015.11
5.4.400.0070.03715.27
5.4.390.0030.02815.08
5.4.380.0030.02315.13
5.4.370.0080.01815.07
5.4.360.0050.02115.38
5.4.350.0020.02615.05
5.4.340.0030.03315.09
5.4.330.0030.00911.39
5.4.320.0030.02015.18
5.4.310.0050.02215.26
5.4.300.0050.02715.05
5.4.290.0070.01815.30
5.4.280.0040.02314.97
5.4.270.0020.02415.19
5.4.260.0080.02615.06
5.4.250.0070.02014.97
5.4.240.0020.04015.00
5.4.230.0100.01815.18
5.4.220.0050.02115.18
5.4.210.0020.02414.99
5.4.200.0120.01515.01
5.4.190.0050.02515.07
5.4.180.0100.03315.04
5.4.170.0050.04115.12
5.4.160.0080.03314.81
5.4.150.0030.04215.01
5.4.140.0030.04213.79
5.4.130.0080.03913.67
5.4.120.0030.04213.71
5.4.110.0030.03313.78
5.4.100.0080.03313.68
5.4.90.0110.03413.56
5.4.80.0080.03813.81
5.4.70.0080.03413.76
5.4.60.0050.04113.67
5.4.50.0080.02213.85
5.4.40.0050.04413.84
5.4.30.0020.04313.51
5.4.20.0020.04213.79
5.4.10.0050.04013.67
5.4.00.0050.02713.53
5.3.290.0080.01712.80
5.3.280.0060.02012.56
5.3.270.0050.03912.60
5.3.260.0030.04212.69
5.3.250.0040.03912.70
5.3.240.0090.02112.50
5.3.230.0030.04612.63
5.3.220.0070.03612.52
5.3.210.0030.04312.54
5.3.200.0000.04512.52
5.3.190.0050.03312.46
5.3.180.0100.03412.72
5.3.170.0070.04012.68
5.3.160.0020.04112.62
5.3.150.0070.03712.57
5.3.140.0010.04312.56
5.3.130.0070.02712.59
5.3.120.0010.03912.55
5.3.110.0090.02912.61
5.3.100.0100.03312.36
5.3.90.0030.04212.43
5.3.80.0080.02312.29
5.3.70.0070.03812.24
5.3.60.0120.03712.14
5.3.50.0070.02212.25
5.3.40.0020.04512.18
5.3.30.0080.03812.26
5.3.20.0020.04012.04
5.3.10.0030.03812.06
5.3.00.0050.04011.95
5.2.170.0090.03110.93
5.2.160.0050.03210.93
5.2.150.0050.03210.93
5.2.140.0080.03310.93
5.2.130.0050.03310.93
5.2.120.0030.03910.93
5.2.110.0030.03710.93
5.2.100.0020.03410.93
5.2.90.0050.03510.93
5.2.80.0070.03210.93
5.2.70.0050.03410.93
5.2.60.0020.03710.93
5.2.50.0050.03110.93
5.2.40.0050.03210.93
5.2.30.0030.03310.93
5.2.20.0080.02310.93
5.2.10.0090.02710.93
5.2.00.0070.03310.93
5.1.60.0040.02810.93
5.1.50.0020.03110.93
5.1.40.0040.02510.93
5.1.30.0060.01810.93
5.1.20.0050.02610.93
5.1.10.0000.03410.93
5.1.00.0080.02510.93
5.0.50.0080.02210.93
5.0.40.0050.02110.93
5.0.30.0070.03310.93
5.0.20.0060.02010.93
5.0.10.0020.02310.93
5.0.00.0020.03110.93
4.4.90.0020.02110.93
4.4.80.0040.01910.93
4.4.70.0030.01810.93
4.4.60.0050.02010.93
4.4.50.0010.02110.93
4.4.40.0050.01710.93
4.4.30.0000.01210.93
4.4.20.0050.01210.93
4.4.10.0020.02010.93
4.4.00.0010.03210.93
4.3.110.0010.02010.93
4.3.100.0070.01510.93
4.3.90.0070.01510.93
4.3.80.0030.02810.93
4.3.70.0050.01710.93
4.3.60.0020.01610.93
4.3.50.0020.02010.93
4.3.40.0020.03010.93
4.3.30.0050.01510.93
4.3.20.0020.01210.93
4.3.10.0020.02010.93
4.3.00.0000.01810.93

preferences:
61.03 ms | 400 KiB | 5 Q