3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected $foo; public static function create($foo) { $new = new static(); $new->setFoo($foo); } protected function setFoo($foo) { $this->foo = $foo; } public function getFoo() { return $this->foo; } } $a = A::create('asdf'); var_dump($a->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.40.0070.01118.59
8.3.30.0100.00320.30
8.3.20.0030.00620.20
8.3.10.0080.00022.09
8.3.00.0000.00822.44
8.2.170.0140.00022.96
8.2.160.0070.00722.08
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00321.01
8.2.110.0030.00620.52
8.2.100.0080.00417.85
8.2.90.0030.00618.03
8.2.80.0000.00719.28
8.2.70.0070.00417.50
8.2.60.0040.00417.91
8.2.50.0030.00518.07
8.2.40.0000.00818.16
8.2.30.0030.00618.04
8.2.20.0020.00517.66
8.2.10.0040.00417.63
8.2.00.0000.00717.56
8.1.270.0040.00424.02
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0030.00522.01
8.1.230.0090.00622.66
8.1.220.0050.00317.74
8.1.210.0000.00818.89
8.1.200.0030.00717.35
8.1.190.0030.00617.40
8.1.180.0040.00418.10
8.1.170.0030.00618.59
8.1.160.0040.00418.81
8.1.150.0000.00718.58
8.1.140.0030.00617.44
8.1.130.0030.00317.83
8.1.120.0070.00017.43
8.1.110.0040.00417.33
8.1.100.0030.00317.29
8.1.90.0040.00417.38
8.1.80.0050.00317.30
8.1.70.0030.00317.41
8.1.60.0060.00317.61
8.1.50.0040.00417.50
8.1.40.0000.00717.51
8.1.30.0040.00417.47
8.1.20.0040.00417.67
8.1.10.0000.00817.47
8.1.00.0080.00417.40
8.0.300.0080.00020.09
8.0.290.0050.00217.04
8.0.280.0040.00418.26
8.0.270.0070.00017.07
8.0.260.0050.00316.79
8.0.250.0030.00316.83
8.0.240.0040.00416.86
8.0.230.0050.00317.02
8.0.220.0040.00416.79
8.0.210.0040.00416.94
8.0.200.0040.00416.94
8.0.190.0030.00616.86
8.0.180.0000.00716.93
8.0.170.0050.00316.98
8.0.160.0040.00317.02
8.0.150.0000.00716.81
8.0.140.0000.00716.84
8.0.130.0030.00313.32
8.0.120.0080.00016.88
8.0.110.0000.00816.85
8.0.100.0040.00416.79
8.0.90.0040.00416.89
8.0.80.0120.00316.87
8.0.70.0000.00716.91
8.0.60.0050.00316.96
8.0.50.0050.00216.75
8.0.30.0140.00517.08
8.0.20.0160.00817.40
8.0.10.0000.00717.09
8.0.00.0160.00717.02
7.4.330.0060.00015.00
7.4.320.0030.00516.48
7.4.300.0000.00616.50
7.4.290.0040.00416.61
7.4.280.0030.00316.53
7.4.270.0000.00716.51
7.4.260.0070.00313.24
7.4.250.0030.00316.55
7.4.240.0030.00316.61
7.4.230.0070.00016.68
7.4.220.0110.00716.50
7.4.210.0080.00816.57
7.4.200.0040.00416.59
7.4.190.0000.00716.53
7.4.160.0130.00316.38
7.4.150.0030.01417.40
7.4.140.0080.01417.86
7.4.130.0080.00816.52
7.4.120.0070.01016.43
7.4.110.0090.01316.34
7.4.100.0150.00916.48
7.4.90.0120.00916.52
7.4.80.0090.00919.39
7.4.70.0060.01016.47
7.4.60.0070.01016.42
7.4.50.0030.00616.31
7.4.40.0100.00522.77
7.4.30.0080.00816.49
7.4.10.0000.01815.14
7.4.00.0050.01315.08
7.3.330.0020.00213.18
7.3.320.0050.00013.30
7.3.310.0030.00516.25
7.3.300.0000.00716.16
7.3.290.0060.00916.37
7.3.280.0110.00516.39
7.3.270.0140.00317.40
7.3.260.0100.00716.42
7.3.250.0110.00916.40
7.3.240.0100.00716.57
7.3.230.0040.01416.44
7.3.210.0130.00316.21
7.3.200.0070.01419.39
7.3.190.0130.00416.45
7.3.180.0100.01316.41
7.3.170.0060.01616.35
7.3.160.0080.00816.40
7.3.130.0100.00914.70
7.3.120.0060.00714.82
7.3.110.0140.00314.74
7.3.100.0000.01114.82
7.3.90.0040.01114.87
7.3.80.0030.00714.75
7.3.70.0120.00414.92
7.3.60.0070.00414.75
7.3.50.0040.00714.83
7.3.40.0040.00714.61
7.3.30.0000.00914.86
7.3.20.0070.00716.77
7.3.10.0110.00516.63
7.3.00.0130.00716.24
7.2.330.0030.01516.52
7.2.320.0050.01416.38
7.2.310.0200.00316.63
7.2.300.0090.01216.75
7.2.290.0030.01716.54
7.2.260.0070.01115.13
7.2.250.0060.01015.05
7.2.240.0000.01315.18
7.2.230.0000.00915.17
7.2.220.0070.01014.91
7.2.210.0030.00915.12
7.2.200.0090.00614.92
7.2.190.0080.00414.98
7.2.180.0000.01314.67
7.2.170.0060.00915.03
7.2.160.0030.01015.02
7.2.150.0030.00916.98
7.2.140.0090.00316.95
7.2.130.0100.00616.64
7.2.120.0060.00816.80
7.2.110.0100.00716.63
7.2.100.0100.00616.70
7.2.90.0130.00616.67
7.2.80.0060.00816.60
7.2.70.0120.00616.67
7.2.60.0070.00916.69
7.2.50.0040.01016.59
7.2.40.0080.01016.71
7.2.30.0080.01316.70
7.2.20.0130.00716.87
7.2.10.0080.00516.70
7.2.00.0090.00817.59
7.1.330.0070.00715.89
7.1.320.0070.00715.76
7.1.310.0150.00015.63
7.1.300.0080.00415.87
7.1.290.0000.00915.91
7.1.280.0030.01415.72
7.1.270.0120.00315.72
7.1.260.0070.00715.71
7.1.250.0060.01015.48
7.1.240.0100.00615.75
7.1.230.0030.01415.81
7.1.220.0110.00415.83
7.1.210.0070.00315.76
7.1.200.0090.00415.65
7.1.190.0030.00915.92
7.1.180.0000.01215.85
7.1.170.0000.01415.85
7.1.160.0060.00615.41
7.1.150.0100.00715.80
7.1.140.0040.01215.54
7.1.130.0090.00315.70
7.1.120.0070.00715.59
7.1.110.0030.01315.84
7.1.100.0040.00616.87
7.1.90.0090.00615.71
7.1.80.0040.00815.81
7.1.70.0030.00716.33
7.1.60.0050.00917.57
7.1.50.0050.00816.16
7.1.40.0040.01115.86
7.1.30.0000.01215.73
7.1.20.0000.01115.84
7.1.10.0090.00615.55
7.1.00.0050.02919.09
7.0.330.0000.01015.55
7.0.320.0070.00715.37
7.0.310.0050.00515.46
7.0.300.0000.01115.41
7.0.290.0000.00915.40
7.0.280.0030.01215.21
7.0.270.0080.00415.46
7.0.260.0040.00715.63
7.0.250.0100.00315.30
7.0.240.0040.00415.44
7.0.230.0050.00315.49
7.0.220.0080.00615.27
7.0.210.0040.01215.21
7.0.200.0090.00216.21
7.0.190.0000.01015.62
7.0.180.0000.01215.50
7.0.170.0030.01015.31
7.0.160.0030.00915.52
7.0.150.0110.00015.47
7.0.140.0040.03918.75
7.0.130.0000.01315.30
7.0.120.0030.00715.30
7.0.110.0030.00615.52
7.0.100.0060.00615.23
7.0.90.0030.01015.55
7.0.80.0080.04317.65
7.0.70.0160.04117.73
7.0.60.0150.04517.56
7.0.50.0170.04317.86
7.0.40.0120.03816.72
7.0.30.0020.04916.63
7.0.20.0130.04016.78
7.0.10.0070.02816.72
7.0.00.0040.04916.73
5.6.400.0100.00614.26
5.6.390.0070.00714.37
5.6.380.0070.00714.35
5.6.370.0000.01414.28
5.6.360.0100.00614.38
5.6.350.0060.00914.21
5.6.340.0100.00714.21
5.6.330.0000.01314.18
5.6.320.0000.01314.32
5.6.310.0030.00714.16
5.6.300.0040.01114.75
5.6.290.0100.00313.96
5.6.280.0070.03917.68
5.6.270.0030.00714.59
5.6.260.0060.01014.11
5.6.250.0000.01114.48
5.6.240.0040.00714.14
5.6.230.0050.04617.59
5.6.220.0120.03717.41
5.6.210.0040.02917.51
5.6.200.0110.04317.78
5.6.190.0090.02317.76
5.6.180.0070.04317.76
5.6.170.0070.04617.61
5.6.160.0030.04217.56
5.6.150.0070.04717.74
5.6.140.0100.04417.74
5.6.130.0060.04617.66
5.6.120.0050.04017.77
5.6.110.0100.04517.68
5.6.100.0080.02417.63
5.6.90.0030.04217.81
5.6.80.0070.03817.32
5.6.70.0100.03817.30
5.6.60.0030.03017.51
5.6.50.0050.03417.50
5.6.40.0080.02317.28
5.6.30.0080.04017.35
5.6.20.0070.02917.43
5.6.10.0080.04417.35
5.6.00.0100.04017.30
5.5.380.0040.00714.38
5.5.370.0080.04217.45
5.5.360.0050.04417.24
5.5.350.0120.03117.33
5.5.340.0080.04217.52
5.5.330.0070.04717.63
5.5.320.0080.02517.58
5.5.310.0050.04717.65
5.5.300.0100.02817.74
5.5.290.0070.04917.61
5.5.280.0050.04817.58
5.5.270.0110.03517.68
5.5.260.0120.04017.48
5.5.250.0030.04517.55
5.5.240.0050.03017.13
5.5.230.0070.04217.27
5.5.220.0130.03817.34
5.5.210.0050.03717.33
5.5.200.0000.03917.15
5.5.190.0100.04217.19
5.5.180.0100.03517.15
5.5.170.0070.00713.99
5.5.160.0130.02517.15
5.5.150.0050.02617.30
5.5.140.0100.03817.19
5.5.130.0060.04217.36
5.5.120.0030.03817.17
5.5.110.0080.04017.17
5.5.100.0110.04017.01
5.5.90.0000.03317.12
5.5.80.0070.02717.13
5.5.70.0030.04517.20
5.5.60.0080.02317.26
5.5.50.0100.02817.17
5.5.40.0080.02117.21
5.5.30.0160.03317.09
5.5.20.0050.02717.11
5.5.10.0060.02617.04
5.5.00.0080.04317.16
5.4.450.0050.04016.10
5.4.440.0050.03816.18
5.4.430.0070.02216.19
5.4.420.0070.02116.26
5.4.410.0030.04016.11
5.4.400.0020.04315.95
5.4.390.0020.02516.07
5.4.380.0070.03716.03
5.4.370.0060.03315.93
5.4.360.0030.03016.13
5.4.350.0050.03716.03
5.4.340.0050.04215.98
5.4.330.0030.00313.02
5.4.320.0040.03916.06
5.4.310.0050.02915.98
5.4.300.0080.04016.12
5.4.290.0030.02716.08
5.4.280.0050.03915.93
5.4.270.0070.04015.96
5.4.260.0050.03516.08
5.4.250.0050.03316.09
5.4.240.0070.03815.96
5.4.230.0030.03416.12
5.4.220.0050.02616.03
5.4.210.0050.02515.98
5.4.200.0040.04416.07
5.4.190.0060.02616.07
5.4.180.0060.02416.03
5.4.170.0050.04416.03
5.4.160.0100.02316.03
5.4.150.0070.03716.02
5.4.140.0050.03814.71
5.4.130.0050.03414.75
5.4.120.0030.02314.76
5.4.110.0070.02014.73
5.4.100.0030.03714.76
5.4.90.0040.03214.73
5.4.80.0120.03714.71
5.4.70.0020.04314.76
5.4.60.0040.02714.75
5.4.50.0070.03314.73
5.4.40.0030.02714.72
5.4.30.0050.03814.73
5.4.20.0030.03714.71
5.4.10.0030.04114.63
5.4.00.0050.03414.40
5.3.290.0020.02713.81
5.3.280.0090.03813.84
5.3.270.0060.03313.87
5.3.260.0090.03813.79
5.3.250.0050.03913.78
5.3.240.0050.03013.84
5.3.230.0060.04113.79
5.3.220.0110.03313.78
5.3.210.0040.04613.87
5.3.200.0070.03813.81
5.3.190.0030.02513.79
5.3.180.0060.03113.81
5.3.170.0050.03213.83
5.3.160.0070.03313.82
5.3.150.0080.03813.82
5.3.140.0080.03513.86
5.3.130.0050.02013.82
5.3.120.0070.04313.82
5.3.110.0080.03613.84
5.3.100.0030.04213.61
5.3.90.0110.03413.55
5.3.80.0050.03713.57
5.3.70.0060.02313.53
5.3.60.0050.02613.58
5.3.50.0050.04113.51
5.3.40.0090.03513.44
5.3.30.0050.04013.48
5.3.20.0030.04013.38
5.3.10.0050.02913.37
5.3.00.0030.02413.30
5.2.170.0070.05311.66
5.2.160.0070.05311.66
5.2.150.0070.03311.66
5.2.140.0070.04311.66
5.2.130.0100.06311.66
5.2.120.0000.05011.66
5.2.110.0070.05711.66
5.2.100.0170.05011.66
5.2.90.0000.06311.66
5.2.80.0030.03311.66
5.2.70.0100.04011.66
5.2.60.0030.02711.66
5.2.50.0130.05311.66
5.2.40.0070.05711.66
5.2.30.0070.06011.66
5.2.20.0030.06311.66
5.2.10.0000.05711.66
5.2.00.0030.05711.66
5.1.60.0070.03311.66
5.1.50.0070.05311.66
5.1.40.0000.02311.66
5.1.30.0030.05711.66
5.1.20.0030.06011.66
5.1.10.0070.05011.66
5.1.00.0200.04011.66
5.0.50.0000.04711.66
5.0.40.0030.02711.66
5.0.30.0000.03311.66
5.0.20.0030.03311.66
5.0.10.0100.03011.66
5.0.00.0030.06011.66
4.4.90.0030.01311.66
4.4.80.0030.03311.66
4.4.70.0030.03311.66
4.4.60.0070.03011.66
4.4.50.0030.03311.66
4.4.40.0000.06011.66
4.4.30.0030.01011.66
4.4.20.0000.03711.66
4.4.10.0000.03011.66
4.4.00.0000.03311.66
4.3.110.0000.02011.66
4.3.100.0000.03711.66
4.3.90.0030.01711.66
4.3.80.0030.05311.66
4.3.70.0030.03311.66
4.3.60.0070.03011.66
4.3.50.0000.03711.66
4.3.40.0070.03711.66
4.3.30.0000.03711.66
4.3.20.0000.04011.66
4.3.10.0000.02311.66
4.3.00.0000.03711.66

preferences:
39.36 ms | 400 KiB | 5 Q