3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $b; public function __construct(B $b) { $this->b = $b; var_dump($b->OMG); } } class B { const OMG = 10; public function __get($name) { return constant(self::$name); } } $b = new B(); $a = new A($b);

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.0030.01316.88
8.3.50.0190.00922.05
8.3.40.0120.00318.67
8.3.30.0030.01019.39
8.3.20.0000.00720.25
8.3.10.0040.00423.84
8.3.00.0000.00819.69
8.2.180.0070.01418.19
8.2.170.0120.00322.96
8.2.160.0160.00320.46
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00820.85
8.2.110.0000.01022.14
8.2.100.0000.01218.09
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0030.00517.38
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0000.00819.95
8.2.30.0090.00018.30
8.2.20.0070.00017.75
8.2.10.0030.00517.97
8.2.00.0050.00317.57
8.1.280.0060.01025.92
8.1.270.0040.00423.57
8.1.260.0070.00026.35
8.1.250.0100.00028.09
8.1.240.0030.00623.97
8.1.230.0070.00419.09
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0110.00017.38
8.1.190.0030.00517.13
8.1.180.0050.00318.10
8.1.170.0040.00418.52
8.1.160.0000.00821.96
8.1.150.0000.00818.89
8.1.140.0030.00617.46
8.1.130.0000.00717.75
8.1.120.0030.00417.49
8.1.110.0000.00717.37
8.1.100.0040.00417.42
8.1.90.0040.00417.30
8.1.80.0000.00817.44
8.1.70.0070.00017.41
8.1.60.0050.00517.62
8.1.50.0040.00417.54
8.1.40.0040.00417.60
8.1.30.0050.00317.50
8.1.20.0000.00817.59
8.1.10.0060.00317.61
8.1.00.0040.00417.37
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0040.00418.42
8.0.270.0030.00317.07
8.0.260.0050.00317.15
8.0.250.0030.00316.93
8.0.240.0000.00716.92
8.0.230.0000.00716.96
8.0.220.0070.00016.90
8.0.210.0030.00316.96
8.0.200.0000.00616.98
8.0.190.0080.00016.98
8.0.180.0100.00016.89
8.0.170.0080.00016.95
8.0.160.0000.00716.98
8.0.150.0000.00716.84
8.0.140.0030.00716.88
8.0.130.0050.00013.23
8.0.120.0030.00616.91
8.0.110.0070.00016.79
8.0.100.0070.00016.93
8.0.90.0050.00316.76
8.0.80.0040.01516.80
8.0.70.0070.00017.01
8.0.60.0000.00716.79
8.0.50.0020.00516.78
8.0.30.0070.01317.04
8.0.20.0080.01117.40
8.0.10.0000.00716.88
8.0.00.0110.00816.62
7.4.330.0030.00315.14
7.4.320.0000.00616.43
7.4.300.0000.00616.63
7.4.290.0030.00616.48
7.4.280.0040.00416.50
7.4.270.0050.00316.52
7.4.260.0030.00316.49
7.4.250.0050.00316.48
7.4.240.0030.00316.56
7.4.230.0070.00016.30
7.4.220.0030.01416.68
7.4.210.0100.00716.71
7.4.200.0070.00016.72
7.4.160.0070.01116.36
7.4.150.0150.00317.40
7.4.140.0070.01017.86
7.4.130.0070.00916.50
7.4.120.0080.01016.66
7.4.110.0170.01016.47
7.4.100.0050.01416.56
7.4.90.0040.01216.53
7.4.80.0090.01219.39
7.4.70.0120.00316.57
7.4.60.0100.00716.44
7.4.50.0000.00916.55
7.4.40.0180.00316.57
7.4.30.0100.01016.45
7.4.00.0080.01114.93
7.3.330.0000.00613.36
7.3.320.0000.00713.29
7.3.310.0000.00716.37
7.3.300.0000.00816.37
7.3.290.0030.01116.34
7.3.280.0060.01016.37
7.3.270.0060.01117.40
7.3.260.0090.00916.32
7.3.250.0100.00716.48
7.3.240.0100.01016.37
7.3.230.0090.00616.48
7.3.210.0090.00916.61
7.3.200.0090.00619.39
7.3.190.0030.01316.38
7.3.180.0030.01316.57
7.3.170.0080.00816.39
7.3.160.0040.01116.37
7.3.120.0060.00914.87
7.3.110.0060.01014.87
7.3.100.0050.01014.77
7.3.90.0060.00414.74
7.3.80.0080.00614.87
7.3.70.0080.00614.87
7.3.60.0060.00714.87
7.3.50.0070.00714.85
7.3.40.0060.00814.70
7.3.30.0060.00814.87
7.3.20.0030.00716.56
7.3.10.0080.00516.61
7.3.00.0060.00716.50
7.2.330.0040.01416.50
7.2.320.0150.00616.69
7.2.310.0040.01816.79
7.2.300.0090.00816.46
7.2.290.0130.00316.68
7.2.250.0070.01115.23
7.2.240.0090.00914.94
7.2.230.0100.00614.91
7.2.220.0050.01014.94
7.2.210.0040.01015.07
7.2.200.0040.00815.01
7.2.190.0110.00615.04
7.2.180.0050.00915.02
7.2.170.0020.01214.98
7.2.160.0050.00915.03
7.2.150.0070.00716.84
7.2.140.0040.00816.91
7.2.130.0070.00716.98
7.2.120.0050.00516.97
7.2.110.0110.00716.96
7.2.100.0050.00916.84
7.2.90.0060.00916.81
7.2.80.0020.00816.74
7.2.70.0070.00416.91
7.2.60.0020.01116.80
7.2.50.0060.00616.92
7.2.40.0090.00917.01
7.2.30.0040.00816.88
7.2.20.0060.00916.91
7.2.10.0070.00816.91
7.2.00.0050.00717.71
7.1.330.0060.00915.80
7.1.320.0050.00715.82
7.1.310.0060.00615.73
7.1.300.0030.00815.75
7.1.290.0040.00815.69
7.1.280.0060.00615.74
7.1.270.0050.00615.72
7.1.260.0050.00815.87
7.1.250.0070.00615.74
7.1.200.0000.01315.68
7.1.100.0110.00418.17
7.1.70.0070.00017.02
7.1.60.0100.01419.70
7.1.50.0070.01716.90
7.1.00.0070.07322.51
7.0.200.0160.00314.95
7.0.140.0000.06721.93
7.0.60.0070.04020.07
7.0.50.0030.04017.87
7.0.40.0000.04720.29
7.0.30.0330.08020.06
7.0.20.0270.05020.16
7.0.10.0300.06020.23
7.0.00.0100.05020.10
5.6.280.0070.07020.87
5.6.210.0070.06320.70
5.6.200.0030.05718.20
5.6.190.0030.07320.38
5.6.180.0300.08020.58
5.6.170.0370.06320.58
5.6.160.0200.07020.63
5.6.150.0100.04018.16
5.6.140.0130.08018.25
5.6.130.0030.09018.22
5.6.120.0170.06720.96
5.6.110.0070.06720.99
5.6.100.0130.07321.01
5.6.90.0070.07021.07
5.6.80.0100.07720.38
5.6.70.4530.03320.42
5.5.350.0030.04020.43
5.5.340.0070.05718.05
5.5.330.0030.08720.29
5.5.320.0000.08720.27
5.5.310.0270.07720.42
5.5.300.0000.04017.99
5.5.290.0100.06317.98
5.5.280.0100.06720.85
5.5.270.0070.08720.90
5.5.260.0070.04020.73
5.5.250.0030.04020.62
5.5.240.0030.03720.12
5.4.450.0430.04719.37
5.4.440.0030.04319.41
5.4.430.0200.04319.27
5.4.420.0400.04019.42
5.4.410.0230.04719.14
5.4.400.0230.04318.88
5.4.390.0300.04719.32
5.4.380.0130.05318.74
5.4.370.0230.04318.62
5.4.360.0130.05018.75
5.4.350.0100.05718.54
5.4.340.0100.05718.78
5.4.320.0070.04112.50
5.4.310.0070.05012.50
5.4.300.0060.04012.51
5.4.290.0080.04212.50
5.4.280.0120.05112.39
5.4.270.0070.04012.40
5.4.260.0080.04612.40
5.4.250.0130.04612.40
5.4.240.0060.04112.40
5.4.230.0070.04412.39
5.4.220.0090.03912.39
5.4.210.0080.03412.39
5.4.200.0050.03912.39
5.4.190.0080.03612.39
5.4.180.0040.03912.38
5.4.170.0050.03712.40
5.4.160.0020.03912.39
5.4.150.0060.04112.39
5.4.140.0080.03512.07
5.4.130.0030.03912.06
5.4.120.0060.03712.02
5.4.110.0030.03812.02
5.4.100.0070.03512.02
5.4.90.0000.04412.02
5.4.80.0050.04412.01
5.4.70.0050.03812.01
5.4.60.0060.03412.01
5.4.50.0050.04612.01
5.4.40.0090.03312.00
5.4.30.0120.04412.00
5.4.20.0100.03111.99
5.4.10.0050.03412.00
5.4.00.0050.03511.49
5.3.290.0090.05112.80
5.3.280.0050.03912.71
5.3.270.0060.03912.72
5.3.260.0090.04012.72
5.3.250.0030.04212.72
5.3.240.0080.03812.72
5.3.230.0060.04312.71
5.3.220.0100.03412.68
5.3.210.0090.03812.68
5.3.200.0060.03612.68
5.3.190.0060.04212.68
5.3.180.0080.04012.67
5.3.170.0050.04012.66
5.3.160.0070.03912.68
5.3.150.0080.04312.67
5.3.140.0080.04812.66
5.3.130.0080.03712.66
5.3.120.0090.03612.66
5.3.110.0100.03512.66
5.3.100.0080.03512.13
5.3.90.0060.03812.11
5.3.80.0080.04212.10
5.3.70.0110.04512.10
5.3.60.0120.03712.08
5.3.50.0050.04612.03
5.3.40.0080.03412.03
5.3.30.0050.03611.99
5.3.20.0050.03511.77
5.3.10.0060.03411.74
5.3.00.0070.03511.73
5.2.170.0050.0309.23
5.2.160.0040.0299.23
5.2.150.0070.0359.23
5.2.140.0060.0349.22
5.2.130.0070.0289.18
5.2.120.0070.0369.19
5.2.110.0080.0369.20
5.2.100.0030.0309.18
5.2.90.0070.0399.20
5.2.80.0060.0309.18
5.2.70.0080.0299.18
5.2.60.0070.0289.13
5.2.50.0040.0309.10
5.2.40.0050.0289.08
5.2.30.0040.0349.06
5.2.20.0030.0379.04
5.2.10.0030.0298.95
5.2.00.0060.0288.81
5.1.60.0050.0238.10
5.1.50.0060.0238.09
5.1.40.0040.0268.07
5.1.30.0050.0258.43
5.1.20.0030.0278.45
5.1.10.0040.0268.17
5.1.00.0080.0218.17
5.0.50.0020.0266.65
5.0.40.0020.0216.50
5.0.30.0050.0306.32
5.0.20.0020.0216.29
5.0.10.0030.0206.27
5.0.00.0030.0316.26
4.4.90.0060.0134.78
4.4.80.0020.0184.75
4.4.70.0020.0164.76
4.4.60.0030.0154.75
4.4.50.0020.0164.77
4.4.40.0010.0274.71
4.4.30.0020.0164.76
4.4.20.0020.0164.85
4.4.10.0030.0164.85
4.4.00.0020.0264.76
4.3.110.0010.0174.67
4.3.100.0000.0214.66
4.3.90.0040.0134.64
4.3.80.0020.0254.58
4.3.70.0010.0164.63
4.3.60.0020.0154.63
4.3.50.0030.0164.63
4.3.40.0040.0264.54
4.3.30.0030.0153.30
4.3.20.0040.0153.28
4.3.10.0030.0153.24
4.3.00.0030.01744.53

preferences:
50.92 ms | 401 KiB | 5 Q