3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Father { /** * Father Controller */ public function __construct() { // CSRF basic Protection $this->beforeFilter('csrf', ['on' => 'post']); $this->beforeFilter('csrf', ['on' => 'put']); $this->beforeFilter('csrf', ['on' => 'patch']); $this->beforeFilter('csrf', ['on' => 'delete']); // Set the bag $this->messageBag = new MessageBag; } } class Child extends Father { /** * Child Controller that extend Father */ public function __construct($a /** Some parameters **/) { parent::__construct(); } } $a = new Child(1);

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.01018.43
8.3.50.0100.01122.04
8.3.40.0000.01518.71
8.3.30.0120.00618.79
8.3.20.0030.00520.34
8.3.10.0030.00620.73
8.3.00.0060.00319.44
8.2.180.0150.00016.75
8.2.170.0150.00022.96
8.2.160.0130.00620.39
8.2.150.0020.00524.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0030.00622.07
8.2.110.0090.00022.30
8.2.100.0110.00319.39
8.2.90.0030.00519.16
8.2.80.0080.00017.97
8.2.70.0000.00917.50
8.2.60.0070.00417.68
8.2.50.0000.00918.07
8.2.40.0040.00418.03
8.2.30.0000.00819.12
8.2.20.0060.00317.69
8.2.10.0000.00917.93
8.2.00.0050.00317.68
8.1.280.0070.00725.92
8.1.270.0030.00622.09
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00423.92
8.1.230.0030.00719.08
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00717.22
8.1.190.0040.00417.00
8.1.180.0040.00418.10
8.1.170.0060.00618.39
8.1.160.0000.00721.97
8.1.150.0020.00518.64
8.1.140.0000.00817.21
8.1.130.0030.00317.79
8.1.120.0040.00417.43
8.1.110.0040.00417.23
8.1.100.0000.00717.39
8.1.90.0000.00717.31
8.1.80.0030.00517.27
8.1.70.0030.00317.35
8.1.60.0060.00317.43
8.1.50.0040.00417.52
8.1.40.0000.00817.36
8.1.30.0030.00517.61
8.1.20.0040.00417.48
8.1.10.0000.00717.41
8.1.00.0030.00617.36
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0070.00018.53
8.0.270.0030.00317.13
8.0.260.0030.00317.18
8.0.250.0040.00416.89
8.0.240.0030.00317.01
8.0.230.0060.00016.96
8.0.220.0000.00716.85
8.0.210.0070.00016.87
8.0.200.0040.00416.97
8.0.190.0090.00316.94
8.0.180.0000.00716.82
8.0.170.0070.00016.90
8.0.160.0030.00517.04
8.0.150.0000.00716.78
8.0.140.0030.00616.88
8.0.130.0000.00513.30
8.0.120.0000.00816.80
8.0.110.0040.00416.77
8.0.100.0070.00016.68
8.0.90.0000.00716.85
8.0.80.0130.00916.79
8.0.70.0050.00216.98
8.0.60.0070.00016.81
8.0.50.0000.00816.86
8.0.30.0110.01117.15
8.0.20.0110.01117.40
8.0.10.0000.00716.95
8.0.00.0140.00316.79
7.4.330.0000.00615.07
7.4.320.0030.00316.39
7.4.300.0070.00016.43
7.4.290.0000.00616.48
7.4.280.0050.00216.55
7.4.270.0070.00016.45
7.4.260.0000.00716.46
7.4.250.0000.00816.42
7.4.240.0020.00616.44
7.4.230.0030.00316.62
7.4.220.0030.00416.61
7.4.210.0070.00716.59
7.4.200.0030.00616.40
7.4.160.0090.00616.39
7.4.150.0150.00917.40
7.4.140.0060.01217.86
7.4.130.0090.00816.37
7.4.120.0110.01116.46
7.4.110.0130.00316.22
7.4.100.0130.00316.60
7.4.90.0060.01016.27
7.4.80.0080.01116.52
7.4.70.0140.00316.27
7.4.60.0100.00716.34
7.4.50.0000.00816.58
7.4.40.0150.00816.50
7.4.30.0170.00616.70
7.4.00.0090.00714.91
7.3.330.0050.00013.44
7.3.320.0020.00213.44
7.3.310.0030.00316.40
7.3.300.0070.00016.37
7.3.290.0070.00716.37
7.3.280.0110.00416.36
7.3.270.0100.00617.40
7.3.260.0120.00916.47
7.3.250.0080.00916.59
7.3.240.0110.00516.50
7.3.230.0100.00716.39
7.3.210.0100.00716.35
7.3.200.0060.01319.39
7.3.190.0140.00716.41
7.3.180.0090.00616.35
7.3.170.0110.00516.36
7.3.160.0070.01016.48
7.3.120.0090.01114.98
7.3.110.0120.00514.77
7.3.100.0090.00514.73
7.3.90.0060.00814.84
7.3.80.0080.00514.66
7.3.70.0020.01114.56
7.3.60.0050.00914.67
7.3.50.0080.00814.79
7.3.40.0080.00314.77
7.3.30.0090.00614.92
7.3.20.0100.00416.65
7.3.10.0060.00616.60
7.3.00.0080.00616.50
7.2.330.0090.00916.65
7.2.320.0080.01516.49
7.2.310.0060.01216.60
7.2.300.0030.01316.32
7.2.290.0160.00616.47
7.2.250.0070.01114.53
7.2.240.0080.01214.94
7.2.230.0020.01115.07
7.2.220.0050.00715.01
7.2.210.0020.01214.87
7.2.200.0060.00614.77
7.2.190.0030.01114.97
7.2.180.0020.01014.84
7.2.170.0070.00714.92
7.2.80.0040.01116.25
7.2.60.0070.00716.71
7.2.00.0030.01019.40
7.1.330.0050.01015.51
7.1.320.0070.00215.57
7.1.310.0060.00715.54
7.1.300.0070.00515.49
7.1.290.0050.00915.50
7.1.280.0030.00815.55
7.1.270.0020.01115.53
7.1.260.0050.00815.47
7.1.200.0090.00315.51
7.1.100.0060.00617.84
7.1.70.0070.00716.88
7.1.60.0070.01719.32
7.1.50.0060.01516.68
7.1.00.0070.07322.43
7.0.200.0000.00816.65
7.0.140.0030.07322.12
7.0.60.0170.07019.95
7.0.50.0000.04717.88
7.0.40.0170.08020.26
7.0.30.0200.04020.26
7.0.20.0130.04720.06
7.0.10.0130.05320.23
7.0.00.0070.05020.23
5.6.280.0070.07020.87
5.6.210.0030.08720.67
5.6.200.0070.05018.20
5.6.190.0100.03720.54
5.6.180.0470.08020.48
5.6.170.0400.05020.57
5.6.160.0130.04720.43
5.6.150.0100.06318.17
5.6.140.0070.08018.28
5.6.130.0030.08018.17
5.6.120.0030.04320.74
5.6.110.0100.08320.98
5.6.100.0130.07720.99
5.6.90.0130.06720.98
5.6.80.0130.07320.44
5.5.350.0200.03720.35
5.5.340.0100.06018.05
5.5.330.0030.06320.29
5.5.320.0330.07720.53
5.5.310.0170.08320.32
5.5.300.0070.03317.95
5.5.290.0070.08018.06
5.5.280.0070.04020.81
5.5.270.0070.06320.87
5.5.260.0100.04320.85
5.5.250.0100.04020.59
5.5.240.0100.07720.25
5.4.450.0330.05319.61
5.4.440.1200.08019.70
5.4.430.1070.05019.31
5.4.420.0900.07019.16
5.4.410.0800.06319.34
5.4.400.0900.05319.23
5.4.390.0900.05719.16
5.4.380.0370.05018.75
5.4.370.0230.05318.59
5.4.360.0330.04718.75
5.4.350.0330.05318.79
5.4.340.0230.05718.57
5.4.320.0050.03512.50
5.4.310.0060.03712.50
5.4.300.0050.03612.50
5.4.290.0090.03612.50
5.4.280.0080.03112.40
5.4.270.0060.03412.40
5.4.260.0020.03912.39
5.4.250.0030.03812.40
5.4.240.0090.03212.40
5.4.230.0050.03712.39
5.4.220.0040.03612.39
5.4.210.0050.03412.39
5.4.200.0070.03512.39
5.4.190.0060.03412.38
5.4.180.0060.03512.39
5.4.170.0050.03512.40
5.4.160.0040.03712.39
5.4.150.0080.03212.39
5.4.140.0030.03912.08
5.4.130.0090.03212.06
5.4.120.0050.03512.02
5.4.110.0040.03512.02
5.4.100.0060.03312.02
5.4.90.0060.03612.01
5.4.80.0030.03812.02
5.4.70.0050.03412.01
5.4.60.0050.03412.01
5.4.50.0040.03612.01
5.4.40.0050.03312.00
5.4.30.0060.03612.00
5.4.20.0050.03611.99
5.4.10.0060.03212.00
5.4.00.0050.03411.49
5.3.290.0040.03912.80
5.3.280.0050.03612.71
5.3.270.0040.03912.73
5.3.260.0040.03912.72
5.3.250.0060.03512.72
5.3.240.0070.03412.72
5.3.230.0040.03712.71
5.3.220.0030.03812.68
5.3.210.0090.03412.68
5.3.200.0050.03512.68
5.3.190.0030.03812.67
5.3.180.0050.03412.67
5.3.170.0050.03612.67
5.3.160.0040.03812.67
5.3.150.0050.03612.67
5.3.140.0050.03512.66
5.3.130.0040.03912.65
5.3.120.0050.04712.66
5.3.110.0040.04612.66
5.3.100.0080.03712.13
5.3.90.0030.03712.11
5.3.80.0050.03512.09
5.3.70.0060.03412.10
5.3.60.0070.04012.09
5.3.50.0050.03512.03
5.3.40.0060.03412.03
5.3.30.0050.03911.98
5.3.20.0080.03611.77
5.3.10.0050.03311.73
5.3.00.0050.03711.72
5.2.170.0040.0299.22
5.2.160.0040.0289.22
5.2.150.0030.0319.22
5.2.140.0050.0289.21
5.2.130.0030.0299.18
5.2.120.0060.0279.18
5.2.110.0020.0309.18
5.2.100.0040.0279.18
5.2.90.0040.0299.17
5.2.80.0050.0289.18
5.2.70.0050.0329.18
5.2.60.0050.0289.13
5.2.50.0050.0289.09
5.2.40.0030.0299.07
5.2.30.0040.0299.05
5.2.20.0010.0319.04
5.2.10.0040.0278.94
5.2.00.0040.0298.80
5.1.60.0020.0258.09
5.1.50.0030.0278.09
5.1.40.0040.0288.06
5.1.30.0010.0328.42
5.1.20.0050.0288.44
5.1.10.0080.0298.17
5.1.00.0070.0238.16
5.0.50.0010.0236.64
5.0.40.0030.0196.50
5.0.30.0030.0396.31
5.0.20.0060.0166.28
5.0.10.0050.0176.26
5.0.00.0030.0316.25
4.4.90.0050.0134.78
4.4.80.0020.0184.75
4.4.70.0040.0224.75
4.4.60.0040.0204.75
4.4.50.0010.0164.77
4.4.40.0010.0274.71
4.4.30.0030.0144.76
4.4.20.0020.0154.84
4.4.10.0020.0154.84
4.4.00.0040.0274.76
4.3.110.0030.0144.67
4.3.100.0040.0124.67
4.3.90.0020.0154.64
4.3.80.0020.0254.58
4.3.70.0020.0234.63
4.3.60.0060.0174.63
4.3.50.0060.0184.63
4.3.40.0040.0254.54
4.3.30.0010.0223.30
4.3.20.0020.0163.28
4.3.10.0030.0143.23
4.3.00.0070.0206.73

preferences:
47.09 ms | 400 KiB | 5 Q