3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $foo; public static function create() { $obj = new static(); $obj->nope(); return $obj; } protected function nope() { $this->foo = 'asdf'; } public function getFoo() { return $this->foo; } } $foo = Foo::create(); var_dump($foo->getFoo());

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.0110.00316.75
8.3.50.0150.00721.04
8.3.40.0140.00018.63
8.3.30.0080.00618.96
8.3.20.0000.00820.02
8.3.10.0070.00323.64
8.3.00.0080.00019.18
8.2.180.0120.00316.46
8.2.170.0100.00722.96
8.2.160.0070.00720.48
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0060.00319.18
8.2.110.0030.00622.26
8.2.100.0040.00819.51
8.2.90.0000.00819.05
8.2.80.0080.00017.97
8.2.70.0080.00017.50
8.2.60.0070.00017.68
8.2.50.0040.00418.07
8.2.40.0000.00819.76
8.2.30.0040.00818.23
8.2.20.0080.00017.75
8.2.10.0070.00017.98
8.2.00.0000.00817.63
8.1.280.0100.00725.92
8.1.270.0000.00823.97
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.74
8.1.230.0070.00419.15
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00917.36
8.1.190.0050.00317.22
8.1.180.0050.00318.10
8.1.170.0110.00418.11
8.1.160.0030.00621.95
8.1.150.0000.00818.59
8.1.140.0000.00717.27
8.1.130.0040.00417.73
8.1.120.0000.00717.33
8.1.110.0040.00417.39
8.1.100.0000.00817.39
8.1.90.0080.00017.41
8.1.80.0040.00417.37
8.1.70.0070.00017.41
8.1.60.0080.00017.63
8.1.50.0040.00417.48
8.1.40.0030.00617.56
8.1.30.0000.00817.51
8.1.20.0070.00017.55
8.1.10.0000.00817.43
8.1.00.0080.00017.45
8.0.300.0040.00418.77
8.0.290.0030.00617.18
8.0.280.0030.00318.30
8.0.270.0040.00417.09
8.0.260.0030.00318.26
8.0.250.0070.00016.78
8.0.240.0030.00616.91
8.0.230.0030.00316.79
8.0.220.0050.00216.80
8.0.210.0000.00716.73
8.0.200.0030.00316.89
8.0.190.0000.00916.86
8.0.180.0000.00716.75
8.0.170.0040.00416.89
8.0.160.0000.00716.73
8.0.150.0040.00716.89
8.0.140.0000.00716.65
8.0.130.0000.00513.21
8.0.120.0050.00316.70
8.0.110.0000.00816.73
8.0.100.0000.00816.73
8.0.90.0040.00416.82
8.0.80.0140.00416.73
8.0.70.0000.00716.71
8.0.60.0040.00416.70
8.0.50.0040.00416.83
8.0.30.0090.01017.05
8.0.20.0100.00717.40
8.0.10.0000.00716.91
8.0.00.0040.01316.74
7.4.330.0020.00215.00
7.4.320.0030.00316.54
7.4.300.0000.00716.47
7.4.290.0070.00016.49
7.4.280.0040.00416.45
7.4.270.0000.00816.60
7.4.260.0070.00016.52
7.4.250.0080.00016.43
7.4.240.0030.00316.46
7.4.230.0030.00316.61
7.4.220.0070.01116.69
7.4.210.0050.00916.58
7.4.200.0080.00016.49
7.4.190.0000.00716.79
7.4.160.0100.01316.47
7.4.150.0080.01017.40
7.4.140.0130.00517.86
7.4.130.0100.00716.53
7.4.120.0130.00716.59
7.4.110.0040.01216.42
7.4.100.0100.01016.32
7.4.90.0150.00316.55
7.4.80.0080.01419.39
7.4.70.0060.01016.43
7.4.60.0070.01016.43
7.4.50.0030.00616.57
7.4.40.0070.01016.53
7.4.30.0090.00616.42
7.4.00.0070.00714.64
7.3.330.0000.00613.31
7.3.320.0000.00513.23
7.3.310.0050.00316.33
7.3.300.0030.00316.25
7.3.290.0030.01216.21
7.3.280.0090.01016.26
7.3.270.0090.00917.40
7.3.260.0100.00716.30
7.3.250.0060.01216.39
7.3.240.0130.00616.31
7.3.230.0070.01016.43
7.3.210.0030.01316.38
7.3.200.0110.01116.48
7.3.190.0090.00916.39
7.3.180.0060.01016.36
7.3.170.0070.01316.57
7.3.160.0070.01116.55
7.3.120.0140.00414.68
7.3.110.0000.01314.71
7.3.100.0040.01114.63
7.3.90.0060.00314.48
7.3.80.0030.00714.75
7.3.70.0030.00714.66
7.3.60.0070.00714.72
7.3.50.0030.01414.69
7.3.40.0000.01214.39
7.3.30.0040.01114.69
7.3.20.0040.01116.70
7.3.10.0070.01216.54
7.3.00.0030.01316.42
7.2.330.0100.01316.36
7.2.320.0040.01916.42
7.2.310.0100.01016.61
7.2.300.0100.01316.64
7.2.290.0030.01316.47
7.2.240.0030.00915.21
7.2.230.0130.00014.76
7.2.220.0070.01014.96
7.2.210.0080.00414.86
7.2.200.0070.00315.10
7.2.190.0000.01114.97
7.2.180.0100.00414.93
7.2.170.0000.01114.64
7.2.160.0100.00015.05
7.2.150.0070.00416.74
7.2.140.0070.00716.79
7.2.130.0090.00616.85
7.2.120.0090.00416.88
7.2.110.0080.00616.75
7.2.100.0040.00916.74
7.2.90.0060.01316.56
7.2.80.0140.00316.68
7.2.70.0100.00416.56
7.2.60.0100.00616.73
7.2.50.0020.01116.90
7.2.40.0070.00916.67
7.2.30.0000.01216.84
7.2.20.0050.00816.68
7.2.10.0030.00916.67
7.2.00.0090.00917.55
7.1.330.0130.00015.86
7.1.320.0070.00715.63
7.1.310.0030.01315.76
7.1.300.0100.00315.77
7.1.290.0070.00715.67
7.1.280.0000.00915.75
7.1.270.0030.00715.70
7.1.260.0060.00315.36
7.1.250.0070.00815.67
7.1.200.0030.00915.65
7.1.100.0000.01217.89
7.1.70.0120.00317.06
7.1.60.0110.01419.46
7.1.50.0000.01716.91
7.1.00.0100.07022.36
7.0.200.0030.00616.78
7.0.140.0070.07321.93
7.0.60.0170.06319.96
7.0.50.0070.08017.83
7.0.40.0070.04320.23
7.0.30.0170.06320.30
7.0.20.0270.08320.19
7.0.10.0170.04020.13
7.0.00.0030.04320.01
5.6.280.0000.07321.13
5.6.210.0100.07720.62
5.6.200.0030.05318.16
5.6.190.0030.04320.58
5.6.180.4030.04020.69
5.6.170.0370.04720.47
5.6.160.0070.07320.57
5.6.150.0130.03318.29
5.6.140.0030.07718.18
5.6.130.0070.08318.20
5.6.120.0070.06021.15
5.6.110.0030.08720.98
5.6.100.0070.08321.00
5.6.90.0170.07721.11
5.6.80.0100.05720.39
5.6.70.0300.02720.43
5.5.350.0200.05020.36
5.5.340.0070.04018.05
5.5.330.0100.03720.13
5.5.320.0330.07320.27
5.5.310.0370.07720.26
5.5.300.0000.08318.08
5.5.290.0100.03717.93
5.5.280.0030.05320.98
5.5.270.0030.06320.68
5.5.260.0100.08320.89
5.5.250.0030.04020.55
5.5.240.0030.08020.16
5.4.450.1170.04019.49
5.4.440.0870.07319.51
5.4.430.0800.06719.66
5.4.420.0630.00019.39
5.4.410.0100.08318.69
5.4.400.0330.06718.80
5.4.390.0330.04318.70
5.4.380.0270.05318.61
5.4.370.0200.03018.72
5.4.360.0030.05018.50
5.4.350.0080.03512.03
5.4.340.0090.03512.02
5.4.320.0100.03112.51
5.4.310.0050.03812.50
5.4.300.0060.04112.50
5.4.290.0050.05512.50
5.4.280.0080.05612.39
5.4.270.0080.06312.39
5.4.260.0070.05312.39
5.4.250.0120.05312.40
5.4.240.0080.05812.39
5.4.230.0070.06112.39
5.4.220.0100.07212.39
5.4.210.0050.06312.39
5.4.200.0120.07912.39
5.4.190.0070.08312.39
5.4.180.0060.07912.39
5.4.170.0090.04912.40
5.4.160.0150.07712.40
5.4.150.0070.05012.39
5.4.140.0060.05312.07
5.4.130.0070.06212.06
5.4.120.0090.05112.02
5.4.110.0090.05712.01
5.4.100.0080.04412.02
5.4.90.0060.04112.02
5.4.80.0070.03912.02
5.4.70.0080.04012.01
5.4.60.0060.04112.01
5.4.50.0080.04412.01
5.4.40.0170.07612.00
5.4.30.0230.08012.00
5.4.20.0110.04512.00
5.4.10.0090.05012.00
5.4.00.0080.03811.48
5.3.290.0050.03912.80
5.3.280.0070.04912.70
5.3.270.0190.10812.72
5.3.260.0080.05712.72
5.3.250.0130.08212.71
5.3.240.0210.08512.71
5.3.230.0130.08012.71
5.3.220.0120.06612.68
5.3.210.0080.07612.68
5.3.200.0150.08412.68
5.3.190.0070.05612.68
5.3.180.0170.09612.68
5.3.170.0100.09012.67
5.3.160.0110.08812.67
5.3.150.0130.08512.68
5.3.140.0110.07112.66
5.3.130.0100.06712.66
5.3.120.0130.07412.66
5.3.110.0190.10612.66
5.3.100.0140.09612.12
5.3.90.0160.08912.11
5.3.80.0070.04612.09
5.3.70.0070.04012.09
5.3.60.0020.06812.07
5.3.50.0070.05412.03
5.3.40.0120.05912.03
5.3.30.0080.07911.99
5.3.20.0060.05311.77
5.3.10.0110.06311.73
5.3.00.0080.04711.71
5.2.170.0090.0489.23
5.2.160.0080.0479.23
5.2.150.0140.0379.22
5.2.140.0030.0479.22
5.2.130.0090.0389.18
5.2.120.0060.0409.18
5.2.110.0060.0349.19
5.2.100.0060.0399.18
5.2.90.0080.0409.18
5.2.80.0050.0449.17
5.2.70.0080.0379.18
5.2.60.0090.0579.12
5.2.50.0060.0379.09
5.2.40.0150.0549.07
5.2.30.0070.0519.05
5.2.20.0060.0309.04
5.2.10.0050.0308.94
5.2.00.0040.0338.80
5.1.60.0040.0348.09
5.1.50.0070.0508.09
5.1.40.0040.0288.07
5.1.30.0080.0378.41
5.1.20.0050.0378.45
5.1.10.0080.0508.16
5.1.00.0060.0438.16
5.0.50.0040.0296.64
5.0.40.0040.0316.50
5.0.30.0090.0396.32
5.0.20.0070.0236.28
5.0.10.0070.0246.26
5.0.00.0050.0406.25
4.4.90.0040.0234.78
4.4.80.0010.0234.75
4.4.70.0050.0154.75
4.4.60.0030.0224.75
4.4.50.0020.0184.77
4.4.40.0020.0314.70
4.4.30.0060.0174.75
4.4.20.0000.0614.84
4.4.10.0140.0274.85
4.4.00.0030.0284.75
4.3.110.0020.0234.67
4.3.100.0030.0204.66
4.3.90.0040.0164.64
4.3.80.0050.0294.58
4.3.70.0050.0204.63
4.3.60.0040.0154.63
4.3.50.0030.0154.63
4.3.40.0000.0294.53
4.3.30.0020.0163.30
4.3.20.0020.0163.28
4.3.10.0020.0163.24
4.3.00.0130.01716.15

preferences:
45.16 ms | 401 KiB | 5 Q