3v4l.org

run code in 300+ PHP versions simultaneously
<?php class RecursiveArrayObject extends ArrayObject { public function __construct(array $array, $flags=ArrayObject::ARRAY_AS_PROPS) { foreach ($array as $key => $value) { if (is_array($value)) { $value = new self($value,$flags); } $this->_offsetSet($key, $value); } $this->setFlags($flags); } private function _offsetSet($index, $newval) { parent::offsetSet($index, $newval); } public function offsetSet($index, $newval) { var_dump($index); $this->_offsetSet($index, $newval); } public function __set($name, $value) { var_dump($name); var_dump($value); if (is_array($value)) { $value = new self($value,$flags); }else{ $this->offsetSet($name, $value); } } } $baseConfig = new RecursiveArrayObject( array( 'titulo' => 'CAWZ :: Central Admin Web Zone', 'dominio' => $_SERVER['HTTP_HOST'], 'urlActual' => $_SERVER['REQUEST_URI'], 'pagina' => basename($_SERVER['SCRIPT_NAME']), 'basePath' => dirname($_SERVER['DOCUMENT_ROOT']), 'clases' => dirname(dirname($_SERVER['DOCUMENT_ROOT'])) . '/libs', 'plantillas' => dirname($_SERVER['DOCUMENT_ROOT']) . '/plantillas/', 'traducciones' => dirname(dirname($_SERVER['DOCUMENT_ROOT'])) . '/idiomas', 'imagenes' => array( 'apartamentos' => array( 'path' => dirname($_SERVER['DOCUMENT_ROOT']) . '/www/apartamentos', 'sizes' => array('s' => '120x90', 'm' => '120x90', 'l' => '120x90'), ) ), 'idioma' => array( 'base' => 'es', 'locales' => array('es' => 'es_ES.UTF8', 'en' => 'en_US.UTF8') ), 'debug' => 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.0040.01116.88
8.3.50.0120.00717.44
8.3.40.0110.00418.79
8.3.30.0140.00018.69
8.3.20.0000.00818.74
8.3.10.0080.00020.50
8.3.00.0080.00019.38
8.2.180.0180.00416.75
8.2.170.0170.00318.91
8.2.160.0200.00322.96
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.98
8.2.110.0030.00621.00
8.2.100.0070.00417.91
8.2.90.0030.00619.30
8.2.80.0000.00818.02
8.2.70.0040.00417.63
8.2.60.0030.00518.05
8.2.50.0040.00418.07
8.2.40.0050.00318.34
8.2.30.0080.00018.25
8.2.20.0000.00817.91
8.2.10.0030.00617.84
8.2.00.0000.00817.91
8.1.280.0080.01125.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00320.86
8.1.230.0040.00720.85
8.1.220.0040.00417.76
8.1.210.0030.00518.77
8.1.200.0060.00317.24
8.1.190.0080.00017.53
8.1.180.0040.00418.10
8.1.170.0000.00818.93
8.1.160.0000.00718.86
8.1.150.0080.00018.70
8.1.140.0030.00517.46
8.1.130.0050.00317.93
8.1.120.0050.00317.42
8.1.110.0030.00617.43
8.1.100.0030.00517.39
8.1.90.0040.00417.52
8.1.80.0000.00717.53
8.1.70.0030.00317.43
8.1.60.0030.00617.62
8.1.50.0040.00417.40
8.1.40.0020.00517.46
8.1.30.0060.00317.59
8.1.20.0040.00417.64
8.1.10.0040.00417.63
8.1.00.0050.00317.38
8.0.300.0000.00720.08
8.0.290.0000.00716.88
8.0.280.0020.00518.43
8.0.270.0000.00717.21
8.0.260.0070.00016.95
8.0.250.0030.00517.07
8.0.240.0060.00316.96
8.0.230.0040.00417.00
8.0.220.0000.00717.03
8.0.210.0030.00316.97
8.0.200.0030.00517.05
8.0.190.0000.00716.96
8.0.180.0040.00417.04
8.0.170.0030.00616.94
8.0.160.0040.00416.99
8.0.150.0030.00516.92
8.0.140.0060.00316.86
8.0.130.0070.00013.42
8.0.120.0070.00215.14
8.0.110.0060.00415.19
8.0.100.0020.00815.25
8.0.90.0070.00215.26
8.0.80.0080.00415.17
8.0.70.0060.00415.12
8.0.60.0090.00015.15
8.0.50.0050.00415.16
8.0.30.0080.00815.92
8.0.20.0130.00716.04
8.0.10.0040.00715.29
8.0.00.0070.00715.83
7.4.330.0030.00313.15
7.4.320.0030.00316.54
7.4.300.0000.00716.62
7.4.290.0000.00716.69
7.4.280.0050.00516.44
7.4.270.0000.00816.57
7.4.260.0060.00313.36
7.4.250.0040.00315.02
7.4.240.0090.00214.96
7.4.230.0080.00314.99
7.4.220.0060.00914.99
7.4.210.0080.00815.88
7.4.200.0040.00614.82
7.4.190.0070.00415.08
7.4.180.0030.00413.29
7.4.160.0110.00015.06
7.4.150.0040.00914.97
7.4.140.0060.01015.43
7.4.130.0100.00515.55
7.4.120.0060.01015.45
7.4.110.0050.01015.01
7.4.100.0110.00914.97
7.4.90.0030.01214.96
7.4.80.0090.00615.02
7.4.70.0100.00614.83
7.4.60.0070.00714.91
7.4.50.0060.00214.87
7.4.40.0060.00714.86
7.4.30.0100.00514.94
7.4.20.0040.00913.20
7.4.10.0120.00013.22
7.4.00.0050.00814.54
7.3.330.0000.00613.50
7.3.320.0030.00313.31
7.3.310.0060.00214.82
7.3.300.0020.00614.99
7.3.290.0070.00414.94
7.3.280.0080.00515.72
7.3.270.0060.00814.96
7.3.260.0080.00815.48
7.3.250.0050.01015.50
7.3.240.0070.00814.91
7.3.230.0120.00214.98
7.3.220.0090.00013.25
7.3.210.0090.00414.84
7.3.200.0090.00916.39
7.3.190.0100.00214.99
7.3.180.0070.00515.00
7.3.170.0060.00614.96
7.3.160.0080.00514.94
7.3.150.0000.00713.25
7.3.140.0060.00013.27
7.3.130.0000.00613.46
7.3.120.0030.01014.46
7.3.110.0050.00714.32
7.3.100.0080.00314.23
7.3.90.0040.00714.42
7.3.80.0050.00814.30
7.3.70.0000.00714.27
7.3.60.0040.00614.32
7.3.50.0030.00814.32
7.3.40.0010.00514.29
7.3.30.0060.00314.37
7.3.20.0020.00915.91
7.3.10.0030.00615.93
7.3.00.0070.00215.94
7.2.340.0110.00013.38
7.2.330.0100.00815.12
7.2.320.0090.00814.93
7.2.310.0080.00815.08
7.2.300.0110.00415.02
7.2.290.0120.00215.02
7.2.280.0120.00013.28
7.2.270.0090.00613.42
7.2.260.0130.00013.33
7.2.250.0080.00714.38
7.2.240.0090.00814.24
7.2.230.0070.00714.35
7.2.220.0080.00514.27
7.2.210.0050.00914.26
7.2.200.0070.00514.41
7.2.190.0060.00714.36
7.2.180.0070.00914.35
7.2.170.0080.00414.49
7.2.160.0090.00413.67
7.2.150.0110.00315.25
7.2.140.0060.00615.40
7.2.130.0090.00415.41
7.2.120.0100.00315.21
7.2.110.0090.00315.57
7.2.100.0080.00415.24
7.2.90.0040.00915.25
7.2.80.0060.00615.28
7.2.70.0140.00015.43
7.2.60.0130.00015.43
7.2.50.0080.00515.35
7.2.40.0100.00315.25
7.2.30.0090.00415.48
7.2.20.0100.00315.46
7.2.10.0080.00515.49
7.2.00.0060.00617.51
7.1.330.0070.00715.06
7.1.320.0090.00315.07
7.1.310.0070.00615.14
7.1.300.0050.00715.17
7.1.290.0080.00315.13
7.1.280.0120.00014.99
7.1.270.0070.00515.08
7.1.260.0080.00315.10
7.1.250.0120.00014.20
7.1.240.0120.00014.27
7.1.230.0110.00014.42
7.1.220.0100.00314.29
7.1.210.0080.00414.47
7.1.200.0130.00014.23
7.1.190.0060.00614.41
7.1.180.0000.01214.41
7.1.170.0120.00014.41
7.1.160.0000.01314.27
7.1.150.0120.00014.20
7.1.140.0130.00014.30
7.1.130.0050.00714.16
7.1.120.0100.00314.32
7.1.110.0000.01114.13
7.1.100.0070.00516.02
7.1.90.0120.00014.35
7.1.80.0120.00014.42
7.1.70.0050.00615.74
7.1.60.0080.01016.91
7.1.50.0110.00615.59
7.1.40.0060.00614.23
7.1.30.0120.00014.44
7.1.20.0060.00614.34
7.1.10.0040.00814.25
7.1.00.0030.03518.34
7.0.330.0000.01114.07
7.0.320.0060.00614.23
7.0.310.0110.00014.25
7.0.300.0080.00414.25
7.0.290.0060.00614.10
7.0.280.0040.00814.06
7.0.270.0090.00314.13
7.0.260.0040.00814.28
7.0.250.0060.00614.36
7.0.240.0070.00514.20
7.0.230.0120.00014.32
7.0.220.0060.00614.27
7.0.210.0100.00214.31
7.0.200.0490.00514.42
7.0.190.0090.00214.27
7.0.180.0100.00214.30
7.0.170.0080.00414.16
7.0.160.0060.00614.20
7.0.150.0060.00614.20
7.0.140.0080.04518.05
7.0.130.0120.00014.28
7.0.120.0060.04018.09
7.0.110.0070.03818.15
7.0.100.0080.01818.01
7.0.90.0050.04318.12
7.0.80.0100.03517.97
7.0.70.0080.04018.15
7.0.60.0080.02018.06
7.0.50.0050.02218.09
7.0.40.0040.03017.14
7.0.30.0080.04317.11
7.0.20.0070.03617.09
7.0.10.0090.03917.18
7.0.00.0060.04017.04
5.6.400.0060.00612.79
5.6.390.0120.00012.75
5.6.380.0000.01212.59
5.6.370.0070.00412.64
5.6.360.0080.00412.94
5.6.350.0110.00012.94
5.6.340.0110.00212.55
5.6.330.0080.00412.52
5.6.320.0090.00212.86
5.6.310.0040.00812.59
5.6.300.0120.00012.52
5.6.290.0050.00512.56
5.6.280.0040.04016.94
5.6.270.0090.04216.94
5.6.260.0040.04516.93
5.6.250.0040.03516.98
5.6.240.0060.02316.95
5.6.230.0060.04116.97
5.6.220.0090.01816.95
5.6.210.0080.02316.92
5.6.200.0050.03416.96
5.6.190.0090.03716.88
5.6.180.0060.03716.95
5.6.170.0050.04316.82
5.6.160.0060.04216.88
5.6.150.0060.04016.98
5.6.140.0080.04316.84
5.6.130.0050.04016.95
5.6.120.0040.04716.90
5.6.110.0060.05116.76
5.6.100.0050.02016.95
5.6.90.0090.01816.88
5.6.80.0080.03616.67
5.6.70.0070.02316.73
5.6.60.0040.03716.60
5.6.50.0090.03316.63
5.6.40.0070.03716.50
5.6.30.0060.03816.52
5.6.20.0030.04416.67
5.6.10.0070.03816.56
5.6.00.0060.02316.46
5.5.380.0080.02415.30
5.5.370.0050.03715.41
5.5.360.0030.02415.21
5.5.350.0060.03715.01
5.5.340.0030.02815.35
5.5.330.0050.02715.23
5.5.320.0060.03315.24
5.5.310.0040.02215.37
5.5.300.0080.04015.36
5.5.290.0050.02515.29
5.5.280.0080.03815.36
5.5.270.0060.03715.30
5.5.260.0050.01815.28
5.5.250.0030.02315.31
5.5.240.0030.02015.27
5.5.230.0060.01815.03
5.5.220.0060.03215.19
5.5.210.0040.02115.13
5.5.200.0050.03115.14
5.5.190.0060.02815.06
5.5.180.0060.02614.84
5.5.170.0080.00312.87
5.5.160.0050.01915.01
5.5.150.0070.02214.84
5.5.140.0030.02914.95
5.5.130.0040.02415.01
5.5.120.0050.02015.11
5.5.110.0040.03614.99
5.5.100.0060.03714.90
5.5.90.0030.04115.13
5.5.80.0070.02515.09
5.5.70.0070.02515.19
5.5.60.0070.03715.02
5.5.50.0070.01615.11
5.5.40.0050.02015.07
5.5.30.0050.03515.10
5.5.20.0060.03315.12
5.5.10.0020.04214.91
5.5.00.0050.03515.00
5.4.450.0060.04115.97
5.4.440.0040.04816.06
5.4.430.0070.04016.13
5.4.420.0070.01816.06
5.4.410.0060.04216.12
5.4.400.0030.04115.92
5.4.390.0040.04116.01
5.4.380.0060.03815.72
5.4.370.0040.04615.82
5.4.360.0060.03315.85
5.4.350.0060.03815.82
5.4.340.0070.03715.75
5.4.330.0070.00412.67
5.4.320.0070.03116.02
5.4.310.0040.03215.94
5.4.300.0050.02015.80
5.4.290.0070.03715.86
5.4.280.0090.02216.05
5.4.270.0050.03916.04
5.4.260.0020.02215.74
5.4.250.0090.02015.84
5.4.240.0050.03615.83
5.4.230.0030.02515.90
5.4.220.0030.02115.83
5.4.210.0070.02715.86
5.4.200.0040.03715.68
5.4.190.0040.03915.73
5.4.180.0050.04015.85
5.4.170.0070.02315.72
5.4.160.0100.03315.85
5.4.150.0080.02215.86
5.4.140.0000.04014.46
5.4.130.0070.03014.59
5.4.120.0050.01814.41
5.4.110.0030.02014.64
5.4.100.0060.01814.60
5.4.90.0030.02814.72
5.4.80.0030.02214.72
5.4.70.0030.01914.78
5.4.60.0070.01814.69
5.4.50.0040.03114.59
5.4.40.0070.03214.69
5.4.30.0040.03914.74
5.4.20.0050.03314.67
5.4.10.0090.01514.65
5.4.00.0050.02414.25
5.3.290.0030.02413.96
5.3.280.0020.02513.75
5.3.270.0030.03913.81
5.3.260.0060.03814.01
5.3.250.0050.02313.85
5.3.240.0050.02413.89
5.3.230.0070.03213.85
5.3.220.0040.03613.75
5.3.210.0020.02613.79
5.3.200.0050.02713.88
5.3.190.0030.03713.95
5.3.180.0030.04313.83
5.3.170.0070.02113.93
5.3.160.0040.03413.88
5.3.150.0020.04213.87
5.3.140.0050.03613.80
5.3.130.0060.02513.87
5.3.120.0040.03414.02
5.3.110.0040.03413.87
5.3.100.0040.02013.52
5.3.90.0050.02813.55
5.3.80.0000.02413.51
5.3.70.0040.03113.59
5.3.60.0000.03313.59
5.3.50.0020.03513.60
5.3.40.0090.02713.52
5.3.30.0070.01713.58
5.3.20.0050.03313.33
5.3.10.0030.03113.35
5.3.00.0050.04013.30
5.2.170.0040.03311.74
5.2.160.0060.01311.66
5.2.150.0040.02711.63
5.2.140.0030.01411.47
5.2.130.0040.02511.58
5.2.120.0050.02511.60
5.2.110.0020.01611.56
5.2.100.0020.03211.46
5.2.90.0040.02311.55
5.2.80.0030.02011.60
5.2.70.0030.03511.65
5.2.60.0060.02211.42
5.2.50.0020.02311.45
5.2.40.0020.03211.54
5.2.30.0030.03211.58
5.2.20.0020.03111.27
5.2.10.0040.02811.40
5.2.00.0050.02011.39
5.1.60.0040.02410.55
5.1.50.0040.02810.57
5.1.40.0020.01910.57
5.1.30.0070.02310.83
5.1.20.0040.02310.81
5.1.10.0040.01710.70
5.1.00.0050.02910.54
5.0.50.0020.02610.09
5.0.40.0030.01810.09
5.0.30.0030.02710.09
5.0.20.0020.01810.09
5.0.10.0000.01310.09
5.0.00.0020.01710.09
4.4.90.0020.01710.09
4.4.80.0010.01610.09
4.4.70.0020.01310.09
4.4.60.0020.00710.09
4.4.50.0020.00810.09
4.4.40.0020.02310.09
4.4.30.0000.01810.09
4.4.20.0020.01010.09
4.4.10.0020.01710.09
4.4.00.0000.02810.09
4.3.110.0050.00710.09
4.3.100.0020.01310.09
4.3.90.0000.01510.09
4.3.80.0040.01010.09
4.3.70.0000.00810.09
4.3.60.0020.00810.09
4.3.50.0000.01210.09
4.3.40.0020.01210.09
4.3.30.0010.00810.09
4.3.20.0020.00810.09
4.3.10.0000.01010.09
4.3.00.0050.00510.09

preferences:
59.4 ms | 400 KiB | 5 Q