3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $path; public function __construct($config) { if (empty($config['path'])) { return false; } $this->path = $config['path']; } public function doSomethingWithPath() { var_dump($this->path); } } $foo = new Foo(); $foo->doSomethingWithPath();

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.0070.00716.50
8.3.50.0120.00316.38
8.3.40.0070.00718.64
8.3.30.0090.00618.67
8.3.20.0070.00320.33
8.3.10.0080.00021.85
8.3.00.0040.00421.67
8.2.180.0180.00018.54
8.2.170.0040.01122.96
8.2.160.0100.00322.21
8.2.150.0000.00824.18
8.2.140.0000.00924.66
8.2.130.0050.00320.69
8.2.120.0040.00426.35
8.2.110.0060.00319.39
8.2.100.0060.00618.04
8.2.90.0080.00019.09
8.2.80.0030.00617.97
8.2.70.0000.01017.63
8.2.60.0030.00517.92
8.2.50.0050.00518.09
8.2.40.0050.00322.16
8.2.30.0070.00019.43
8.2.20.0000.00717.57
8.2.10.0000.00718.00
8.2.00.0080.00018.03
8.1.280.0170.00325.92
8.1.270.0160.00322.19
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0050.00522.54
8.1.230.0040.00717.83
8.1.220.0000.00817.74
8.1.210.0050.00518.77
8.1.200.0060.00317.23
8.1.190.0040.00418.86
8.1.180.0050.00218.10
8.1.170.0040.00418.66
8.1.160.0070.00320.57
8.1.150.0040.00420.58
8.1.140.0040.00419.55
8.1.130.0000.00817.68
8.1.120.0000.00717.38
8.1.110.0000.00717.25
8.1.100.0000.00717.31
8.1.90.0030.00517.29
8.1.80.0030.00617.23
8.1.70.0030.00317.34
8.1.60.0000.00817.41
8.1.50.0040.00417.43
8.1.40.0040.00817.40
8.1.30.0060.00317.45
8.1.20.0000.00817.47
8.1.10.0080.00017.52
8.1.00.0000.00817.42
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0040.00418.41
8.0.270.0000.00717.12
8.0.260.0030.00317.08
8.0.250.0070.00016.94
8.0.240.0000.00717.01
8.0.230.0070.00016.93
8.0.220.0040.00416.96
8.0.210.0040.00416.90
8.0.200.0000.00717.02
8.0.190.0100.00017.00
8.0.180.0030.00516.78
8.0.170.0030.00616.83
8.0.160.0040.00416.81
8.0.150.0020.00516.73
8.0.140.0040.00416.75
8.0.130.0070.00013.21
8.0.120.0000.00816.88
8.0.110.0040.00416.95
8.0.100.0050.00216.71
8.0.90.0000.00716.76
8.0.80.0100.00416.95
8.0.70.0000.00816.77
8.0.60.0040.00416.86
8.0.50.0000.00716.96
8.0.30.0110.00617.14
8.0.20.0120.00717.40
8.0.10.0070.00016.90
8.0.00.0100.00716.72
7.4.330.0000.00616.66
7.4.320.0050.00316.42
7.4.300.0000.00716.59
7.4.290.0000.00716.54
7.4.280.0000.00916.49
7.4.270.0030.00316.59
7.4.260.0070.00016.37
7.4.250.0050.00316.33
7.4.240.0040.00316.46
7.4.230.0070.00016.36
7.4.220.0120.00616.51
7.4.210.0090.00616.44
7.4.200.0030.00316.43
7.4.160.0110.00416.70
7.4.150.0070.01117.40
7.4.140.0100.00717.86
7.4.130.0080.01216.50
7.4.120.0130.00316.47
7.4.110.0100.00716.49
7.4.100.0210.00316.57
7.4.90.0140.00416.46
7.4.80.0080.01119.39
7.4.70.0060.01016.58
7.4.60.0180.00316.48
7.4.50.0060.00616.29
7.4.40.0090.00816.59
7.4.30.0060.01116.46
7.4.00.0080.01014.80
7.3.330.0070.00013.32
7.3.320.0060.00013.30
7.3.310.0030.00316.39
7.3.300.0040.00416.21
7.3.290.0000.00716.37
7.3.280.0100.00716.34
7.3.270.0110.00817.40
7.3.260.0160.00716.34
7.3.250.0080.01116.38
7.3.240.0090.00916.35
7.3.230.0070.01116.39
7.3.210.0060.01516.29
7.3.200.0090.00619.39
7.3.190.0110.00416.28
7.3.180.0060.01016.37
7.3.170.0070.01016.63
7.3.160.0120.00816.32
7.3.120.0030.01414.83
7.3.110.0100.00314.95
7.3.100.0170.00014.73
7.3.90.0030.01014.74
7.3.80.0110.00314.67
7.3.70.0060.00914.83
7.3.60.0120.00314.75
7.3.50.0150.00414.66
7.3.40.0040.01414.80
7.3.30.0050.00514.65
7.3.20.0030.01216.87
7.3.10.0110.00516.27
7.3.00.0080.00616.34
7.2.330.0130.00316.65
7.2.320.0110.00616.30
7.2.310.0110.00716.61
7.2.300.0120.00616.47
7.2.290.0100.00616.49
7.2.250.0100.01015.09
7.2.240.0100.01014.83
7.2.230.0140.00714.94
7.2.220.0040.01114.82
7.2.210.0060.00914.91
7.2.200.0030.01314.96
7.2.190.0160.00014.96
7.2.180.0080.01215.01
7.2.170.0060.00314.85
7.2.130.0190.00015.80
7.2.120.0070.01016.19
7.2.110.0110.00715.90
7.2.100.0070.00716.23
7.2.90.0140.00916.04
7.2.80.0190.01316.25
7.2.70.0120.00616.34
7.2.60.0130.00816.62
7.2.50.0120.01216.30
7.2.40.0160.01316.34
7.2.30.0180.00716.11
7.2.20.0090.01316.37
7.2.10.0090.01416.37
7.2.00.0130.00517.71
7.1.330.0040.01115.61
7.1.320.0030.01015.35
7.1.310.0100.00315.75
7.1.300.0150.00415.57
7.1.290.0080.00815.57
7.1.280.0080.00015.76
7.1.270.0000.01215.40
7.1.260.0030.00815.68
7.1.250.0030.01115.21
7.1.200.0040.00715.71
7.1.100.0070.00717.63
7.1.70.0000.00916.74
7.1.60.0040.01919.40
7.1.50.0070.01516.84
7.1.00.0070.07322.57
7.0.200.0140.00316.68
7.0.60.0170.07721.81
7.0.50.0130.07717.72
7.0.40.0130.08020.27
7.0.30.0270.08320.07
7.0.20.0330.07720.10
7.0.10.0130.03720.09
7.0.00.0130.08020.30
5.6.280.0070.03321.07
5.6.210.0070.06320.51
5.6.200.0070.08018.27
5.6.190.0030.07720.55
5.6.180.0170.06320.55
5.6.170.0230.05020.55
5.6.160.0100.08320.45
5.6.150.0100.08018.14
5.6.140.0100.03718.14
5.6.130.0030.08318.26
5.6.120.0130.07721.03
5.6.110.0100.06321.00
5.6.100.0070.06021.11
5.6.90.0130.05321.01
5.6.80.0030.04020.29
5.5.350.0100.08720.39
5.5.340.0170.07017.95
5.5.330.0000.05720.30
5.5.320.0700.06320.24
5.5.310.0370.06720.27
5.5.300.0100.07717.97
5.5.290.0100.04318.08
5.5.280.0030.04020.97
5.5.270.0070.08720.77
5.5.260.0100.08720.75
5.5.250.0100.05320.69
5.5.240.0270.06720.27

preferences:
69.27 ms | 401 KiB | 5 Q