3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*preg_match('@^(?:http://)?([^/]+)@i','http://www.php.net/index.html',$matches); ${"a"} = $matches[1]; &$a = 12; echo &$a; var_export(${"a"});*/ /*echo ${"a"};*/ /*trait Foo { private $name = '123'; } */ class Bar { //use Foo; private static $name = '321'; public static function getName(){return static::$name;} } class Foo extends Bar{private static $name='123';} $bar = new Foo(); $bar::getName(); /*echo false; class Faz {} class Baz extends Faz {} interface Foo {public function du(Faz $param);} class A implements Foo { public function du(Baz $param){ echo false; } }*//* $i = 5; echo $i++; echo $i;*/ /* namespace Bar; function strlen($string){return 5;} namespace Foo; use Bar; echo strlen('Baz');*/ //var_dump(array_values(ksort(array('re'=>'asd', '3'=>'asda')))); //echo true;

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.0140.00016.88
8.3.50.0110.00722.83
8.3.40.0110.01118.64
8.3.30.0150.00019.04
8.3.20.0000.00720.34
8.3.10.0070.00021.90
8.3.00.0080.00017.38
8.2.180.0060.01216.75
8.2.170.0030.01022.96
8.2.160.0000.01420.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.01026.16
8.2.120.0080.00020.91
8.2.110.0070.00321.00
8.2.100.0040.00718.03
8.2.90.0080.00019.18
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0040.01117.65
8.2.50.0080.00018.07
8.2.40.0050.00518.03
8.2.30.0040.00417.90
8.2.20.0040.00417.59
8.2.10.0050.00217.90
8.2.00.0000.00717.60
8.1.280.0040.01125.92
8.1.270.0030.00623.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00321.29
8.1.230.0120.00019.48
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.57
8.1.160.0040.00421.87
8.1.150.0050.00218.81
8.1.140.0050.00217.27
8.1.130.0030.00317.88
8.1.120.0040.00417.32
8.1.110.0040.00417.42
8.1.100.0040.00417.30
8.1.90.0070.00017.32
8.1.80.0000.00717.30
8.1.70.0040.00417.28
8.1.60.0060.00317.57
8.1.50.0030.00617.50
8.1.40.0000.00717.52
8.1.30.0000.00817.55
8.1.20.0050.00217.60
8.1.10.0040.00417.54
8.1.00.0080.00017.34
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00818.42
8.0.270.0060.00317.20
8.0.260.0000.00817.25
8.0.250.0040.00416.98
8.0.240.0000.00616.97
8.0.230.0030.00316.97
8.0.220.0040.00416.90
8.0.210.0070.00016.85
8.0.200.0040.00416.91
8.0.190.0070.00017.00
8.0.180.0040.00416.89
8.0.170.0040.00416.82
8.0.160.0000.00716.87
8.0.150.0040.00416.84
8.0.140.0030.00816.74
8.0.130.0050.00013.25
8.0.120.0040.00416.73
8.0.110.0070.00016.84
8.0.100.0000.00716.75
8.0.90.0070.00016.82
8.0.80.0070.01016.92
8.0.70.0000.00716.93
8.0.60.0050.00216.71
8.0.50.0030.00516.83
8.0.30.0110.00816.91
8.0.20.0110.01117.40
8.0.10.0000.00716.81
8.0.00.0080.01116.89
7.4.330.0030.00315.07
7.4.320.0000.00616.58
7.4.300.0030.00316.63
7.4.290.0000.00716.58
7.4.280.0000.00716.50
7.4.270.0050.00216.59
7.4.260.0030.00316.58
7.4.250.0000.00816.55
7.4.240.0020.00516.56
7.4.230.0070.00016.40
7.4.220.0090.00616.71
7.4.210.0070.00716.47
7.4.200.0030.00316.40
7.4.160.0100.01316.30
7.4.150.0080.00917.40
7.4.140.0140.00817.86
7.4.130.0160.00316.62
7.4.120.0110.00816.57
7.4.110.0100.00616.46
7.4.100.0130.00316.55
7.4.90.0100.00616.48
7.4.80.0070.01619.39
7.4.70.0060.01116.58
7.4.60.0120.00316.34
7.4.50.0000.00416.43
7.4.40.0080.00816.48
7.4.30.0100.00716.31
7.4.00.0110.00314.93
7.3.330.0000.00513.45
7.3.320.0000.00513.37
7.3.310.0030.00316.24
7.3.300.0000.00716.29
7.3.290.0060.00916.40
7.3.280.0110.00816.41
7.3.270.0110.00817.40
7.3.260.0070.01016.43
7.3.250.0120.00616.39
7.3.240.0130.00616.32
7.3.230.0070.01116.59
7.3.210.0120.00416.45
7.3.200.0120.00619.39
7.3.190.0110.01116.43
7.3.180.0130.00316.44
7.3.170.0110.00716.52
7.3.160.0100.00716.54
7.2.330.0070.01016.73
7.2.320.0180.00016.30
7.2.310.0070.01016.22
7.2.300.0080.00916.37
7.2.290.0000.02216.77
7.2.60.0170.00316.55
7.1.200.0000.01215.86
7.1.100.0110.00018.00
7.1.70.0130.00016.69
7.1.60.0090.00919.40
7.1.50.0030.01716.57
7.1.00.0030.07722.30
7.0.200.0000.00816.57
7.0.140.0070.07322.07
7.0.60.0070.08319.90
7.0.50.0030.04017.84
7.0.40.0130.07320.40
7.0.30.0330.07020.27
7.0.20.0300.06020.10
7.0.10.0130.08020.25
7.0.00.0100.05020.23
5.6.280.0000.07721.10
5.6.210.0100.07020.52
5.6.200.0000.06718.30
5.6.190.0170.07020.41
5.6.180.0230.04020.67
5.6.170.0430.05320.71
5.6.160.0100.04320.34
5.6.150.0070.08318.29
5.6.140.0070.08318.15
5.6.130.0000.05018.28
5.6.120.0130.07721.00
5.6.110.0100.08321.14
5.6.100.0100.08720.96
5.6.90.0100.07321.00
5.6.80.0070.08020.44
5.5.350.0070.08020.47
5.5.340.0030.03718.03
5.5.330.0000.04720.30
5.5.320.0030.04020.51
5.5.310.0370.06320.35
5.5.300.0070.05717.97
5.5.290.0030.08017.95
5.5.280.0200.04020.65
5.5.270.0130.07320.98
5.5.260.0100.08320.79
5.5.250.0100.04020.61
5.5.240.0270.05020.34
5.4.450.0130.04719.32
5.4.440.0330.03719.20
5.4.430.0900.04319.19
5.4.420.0430.03719.41
5.4.410.0170.04319.28
5.4.400.0270.03319.18
5.4.390.0100.04318.84
5.4.380.0330.06318.47
5.4.370.0470.05718.80
5.4.360.0400.04718.77
5.4.350.0530.06018.53
5.4.340.0470.06318.47
5.4.320.0060.04012.50
5.4.310.0050.04312.50
5.4.300.0080.04112.50
5.4.290.0080.04412.50
5.4.280.0050.04112.40
5.4.270.0070.04012.39
5.4.260.0070.03912.39
5.4.250.0060.03812.39
5.4.240.0030.03912.39
5.4.230.0060.05012.39
5.4.220.0060.04012.38
5.4.210.0080.03912.38
5.4.200.0050.03812.38
5.4.190.0080.03312.38
5.4.180.0070.03412.39
5.4.170.0050.03612.39
5.4.160.0080.04012.39
5.4.150.0070.04112.39
5.4.140.0040.03912.07
5.4.130.0060.03412.05
5.4.120.0060.03512.02
5.4.110.0080.03212.01
5.4.100.0070.03312.01
5.4.90.0030.03912.01
5.4.80.0060.03712.02
5.4.70.0080.04312.01
5.4.60.0040.03712.00
5.4.50.0080.04212.00
5.4.40.0060.03512.00
5.4.30.0050.03911.99
5.4.20.0020.04012.00
5.4.10.0050.04112.00
5.4.00.0090.04011.49
5.3.290.0080.03812.80
5.3.280.0060.03812.71
5.3.270.0080.04012.73
5.3.260.0080.03712.72
5.3.250.0070.03612.72
5.3.240.0080.03712.72
5.3.230.0100.03812.71
5.3.220.0050.03912.68
5.3.210.0060.03912.68
5.3.200.0090.03512.68
5.3.190.0060.04112.67
5.3.180.0070.04312.68
5.3.170.0070.04312.67
5.3.160.0080.04212.67
5.3.150.0080.03712.67
5.3.140.0070.04112.66
5.3.130.0070.04212.66
5.3.120.0090.03912.66
5.3.110.0020.04312.66
5.3.100.0060.03712.12
5.3.90.0070.03512.11
5.3.80.0080.03612.09
5.3.70.0070.03412.10
5.3.60.0060.03612.08
5.3.50.0040.04512.03
5.3.40.0040.03812.03
5.3.30.0070.04111.98
5.3.20.0090.03211.77
5.3.10.0030.03811.73
5.3.00.0060.03611.72
5.2.170.0060.0299.22
5.2.160.0060.0279.21
5.2.150.0080.0399.22
5.2.140.0050.0309.22
5.2.130.0070.0289.18
5.2.120.0050.0289.18
5.2.110.0020.0339.18
5.2.100.0050.0289.18
5.2.90.0050.0319.18
5.2.80.0060.0299.17
5.2.70.0070.0369.18
5.2.60.0040.0379.13
5.2.50.0100.0509.09
5.2.40.0060.0359.07
5.2.30.0040.0409.05
5.2.20.0080.0339.04
5.2.10.0060.0318.95
5.2.00.0050.0328.81
5.1.60.0010.0278.09
5.1.50.0020.0278.09
5.1.40.0040.0258.06
5.1.30.0070.0248.41
5.1.20.0050.0278.44
5.1.10.0060.0388.16
5.1.00.0030.0278.16
5.0.50.0020.0226.64
5.0.40.0030.0206.50
5.0.30.0010.0336.32
5.0.20.0050.0176.28
5.0.10.0020.0216.26
5.0.00.0040.0356.25
4.4.90.0050.0134.78
4.4.80.0050.0134.75
4.4.70.0040.0204.76
4.4.60.0030.0194.75
4.4.50.0070.0124.77
4.4.40.0040.0334.71
4.4.30.0050.0204.75
4.4.20.0050.0174.84
4.4.10.0020.0194.85
4.4.00.0020.0304.76
4.3.110.0040.0164.67
4.3.100.0050.0144.66
4.3.90.0020.0174.63
4.3.80.0040.0264.58
4.3.70.0050.0144.63
4.3.60.0020.0174.63
4.3.50.0030.0164.63
4.3.40.0040.0234.54
4.3.30.0040.0153.30
4.3.20.0020.0173.28
4.3.10.0020.0203.24
4.3.00.0030.01715.91

preferences:
40.66 ms | 401 KiB | 5 Q