3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PhpNw15Conference { public function listSpeakers() { return array('James Mallison', 'Some universally hated Ruby developer'); }} /** * Class Controller */ class Controller extends BaseController { /** * @return array */ public function __construct(PhpNw15Conference $conference) { $this->conference = $conference; } public function speakersAction() { $speakers = $this->conference->listSpeakers(); /** Pass to template or CLI runner **/ return $speakers; } } /** Controller Resolver **/ $controller = 'Controller'; // Retrieved from URL + YAML config $action = 'speakersAction'; // Retrieved from URL + Yaml config $params = array(); // Retrieved from GET / POST parameters $reflector = new \ReflectionClass('Controller'); foreach ($reflector->getConstructor()->getParameters() as $parameter) { $className = $parameter->getClass()->getName(); $parameter = new $className; } var_dump((new $controller($parameter))->$action($params));

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.0040.01118.84
8.3.30.0060.00918.53
8.3.20.0060.00920.20
8.3.10.0050.00321.56
8.3.00.0030.00619.55
8.2.170.0070.01022.96
8.2.160.0060.01120.37
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0110.00017.63
8.2.110.0090.00022.09
8.2.100.0080.00417.63
8.2.90.0040.00419.22
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0080.00017.80
8.2.50.0000.00818.07
8.2.40.0040.00419.45
8.2.30.0000.00819.85
8.2.20.0000.00817.72
8.2.10.0050.00218.11
8.2.00.0070.00017.98
8.1.270.0030.00620.24
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00022.34
8.1.230.0090.00317.42
8.1.220.0000.00817.79
8.1.210.0090.00018.77
8.1.200.0040.00417.22
8.1.190.0060.00317.13
8.1.180.0000.00918.10
8.1.170.0060.00318.66
8.1.160.0040.00421.93
8.1.150.0030.00518.71
8.1.140.0030.00617.39
8.1.130.0000.00717.65
8.1.120.0110.00017.41
8.1.110.0030.00617.35
8.1.100.0040.00417.42
8.1.90.0040.00417.42
8.1.80.0030.00517.31
8.1.70.0000.00717.40
8.1.60.0000.00717.52
8.1.50.0040.00417.38
8.1.40.0060.00317.45
8.1.30.0000.00817.49
8.1.20.0030.00517.48
8.1.10.0080.00017.55
8.1.00.0080.00017.43
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0000.00818.33
8.0.270.0000.00717.29
8.0.260.0000.00617.20
8.0.250.0040.00416.93
8.0.240.0030.00317.00
8.0.230.0030.00317.07
8.0.220.0000.00716.82
8.0.210.0040.00416.86
8.0.200.0030.00316.92
8.0.190.0000.00816.93
8.0.180.0060.00316.92
8.0.170.0050.00316.96
8.0.160.0040.00417.02
8.0.150.0000.00716.92
8.0.140.0000.00716.80
8.0.130.0000.00613.37
8.0.120.0080.00016.99
8.0.110.0050.00216.98
8.0.100.0000.00716.98
8.0.90.0030.00516.88
8.0.80.0070.00716.96
8.0.70.0000.00816.88
8.0.60.0020.00516.84
8.0.50.0000.00716.93
8.0.30.0080.01217.08
8.0.20.0120.00717.40
8.0.10.0040.00416.86
8.0.00.0090.00916.83
7.4.330.0000.00515.08
7.4.320.0040.00416.54
7.4.300.0000.00616.54
7.4.290.0000.00716.48
7.4.280.0030.00716.45
7.4.270.0070.00016.46
7.4.260.0030.00516.45
7.4.250.0000.00716.36
7.4.240.0030.00316.52
7.4.230.0040.00416.58
7.4.220.0030.01516.48
7.4.210.0050.00916.48
7.4.200.0000.00716.43
7.4.160.0130.00916.34
7.4.150.0070.01117.40
7.4.140.0100.01217.86
7.4.130.0110.00616.48
7.4.120.0090.00816.51
7.4.110.0110.00716.57
7.4.100.0070.01116.65
7.4.90.0070.01016.59
7.4.80.0030.01319.39
7.4.70.0080.00916.38
7.4.60.0060.01016.55
7.4.50.0080.00016.61
7.4.40.0090.00916.75
7.4.30.0130.00516.49
7.4.00.0060.01014.80
7.3.330.0000.00513.13
7.3.320.0000.00613.18
7.3.310.0040.00416.21
7.3.300.0030.00316.36
7.3.290.0050.00216.30
7.3.280.0080.01016.29
7.3.270.0070.01417.40
7.3.260.0140.00416.54
7.3.250.0100.00916.42
7.3.240.0100.00716.63
7.3.230.0030.01916.39
7.3.210.0080.00816.52
7.3.200.0140.00716.43
7.3.190.0090.00816.45
7.3.180.0030.01416.36
7.3.170.0100.00716.52
7.3.160.0130.00716.37
7.3.10.0040.01116.61
7.3.00.0060.00616.56
7.2.330.0030.01316.29
7.2.320.0070.01616.62
7.2.310.0150.00716.55
7.2.300.0030.01316.63
7.2.290.0070.01016.23
7.2.130.0060.01316.87
7.2.120.0000.01116.69
7.2.110.0070.00716.57
7.2.100.0060.00916.71
7.2.90.0030.01216.73
7.2.80.0140.00016.49
7.2.70.0060.00916.65
7.2.60.0040.00916.79
7.2.50.0000.01716.68
7.2.40.0120.00316.84
7.2.30.0040.01416.77
7.2.20.0110.00716.51
7.2.10.0070.00616.84
7.2.00.0100.00618.04
7.1.250.0070.00715.59
7.1.200.0060.00915.67
7.1.100.0030.01017.59
7.1.70.0040.00416.76
7.1.60.0140.01019.17
7.1.50.0140.01434.77
7.1.00.0070.07322.30
7.0.200.0030.00516.67
7.0.60.0030.05020.00
7.0.50.0030.06317.95
7.0.40.0030.04320.04
7.0.30.0330.07320.30
7.0.20.0270.08320.22
7.0.10.0130.06720.19
7.0.00.0130.07320.09
5.6.210.0030.05720.68
5.6.200.0070.07318.18
5.6.190.0030.08720.46
5.6.180.0070.03720.55
5.6.170.0270.07020.55
5.6.160.0030.08320.71
5.6.150.0070.08318.20
5.6.140.0000.04718.23
5.6.130.0130.07018.14
5.6.120.0030.09021.00
5.6.110.0070.09021.12
5.6.100.0130.06720.99
5.6.90.0000.04721.13
5.6.80.0070.05320.54
5.6.70.3100.03720.41
5.5.350.0170.07020.36
5.5.340.0030.03717.99
5.5.330.0000.06720.18
5.5.320.0070.08020.14
5.5.310.0030.05020.35
5.5.300.0100.05718.07
5.5.290.0030.08317.94
5.5.280.0030.05020.77
5.5.270.0070.06720.87
5.5.260.0100.08320.63
5.5.250.0100.03320.70
5.5.240.0170.07320.24
5.4.450.0730.05719.33
5.4.440.0770.05319.61
5.4.430.0670.06019.38
5.4.420.0770.05319.46
5.4.410.0700.05319.34
5.4.400.0770.05019.39
5.4.390.0900.05319.28
5.4.380.0930.05318.86
5.4.370.0800.06019.37
5.4.360.0770.05319.09
5.4.350.0900.04718.97
5.4.340.0030.06019.28
5.4.320.0100.05319.37
5.4.310.0830.06719.15
5.4.300.0770.05019.37
5.4.290.0670.07019.14
5.4.280.0800.05719.16
5.4.270.0400.05318.86
5.4.260.0030.05718.86
5.4.250.0230.05319.27
5.4.240.0700.05319.05
5.4.230.0900.04719.14
5.4.220.0230.05319.11
5.4.210.0030.06019.27
5.4.200.0500.05319.15
5.4.190.0830.04718.83
5.4.180.0800.05319.13
5.4.170.0900.05019.13
5.4.160.0830.05018.81
5.4.150.0930.04719.00
5.4.140.0770.04716.32
5.4.130.0830.05716.57
5.4.120.1030.04716.54
5.4.110.0700.06016.42
5.4.100.1030.05016.28
5.4.90.0830.06016.51
5.4.80.0930.05016.43
5.4.70.0300.06016.55
5.4.60.0270.05316.40
5.4.50.0070.03316.53
5.4.40.0070.07016.23
5.4.30.0000.04716.50
5.4.20.0030.03716.43

preferences:
61.43 ms | 400 KiB | 5 Q