3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = [ (object)['name' => 'Something', 'link' => 'high/over/there'], (object)['name' => 'Items', 'link' => 'this/is/foo/bar'], ]; array_walk($list, function ($v) { if ($v->name == 'Items') $v->link = dirname($v->link); }); var_export($list);

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.1.70.0000.00717.51
8.1.60.0040.00417.61
8.1.50.0040.00417.52
8.1.40.0030.00617.43
8.1.30.0070.00317.63
8.1.20.0040.00417.67
8.1.10.0000.00717.38
8.1.00.0040.00417.29
8.0.200.0000.00716.98
8.0.190.0000.00716.90
8.0.180.0000.00816.87
8.0.170.0040.00417.03
8.0.160.0000.00716.91
8.0.150.0060.00316.80
8.0.140.0000.00716.80
8.0.130.0050.00013.36
8.0.120.0090.00115.18
8.0.110.0070.00315.04
8.0.100.0070.00315.10
8.0.90.0090.00215.19
8.0.80.0080.00615.19
8.0.70.0040.00715.08
8.0.60.0060.00515.14
8.0.50.0040.00615.19
8.0.30.0060.00915.37
8.0.20.0100.00615.24
8.0.10.0050.00515.22
8.0.00.0110.00415.03
7.4.300.0030.00316.40
7.4.290.0040.00416.58
7.4.280.0040.00416.35
7.4.270.0030.00316.45
7.4.260.0030.00313.25
7.4.250.0050.00714.83
7.4.240.0040.00614.85
7.4.230.0100.00114.82
7.4.220.0050.00515.50
7.4.210.0070.00714.92
7.4.200.0040.00614.90
7.4.190.0100.00313.33
7.4.180.0070.00713.33
7.4.160.0090.00513.41
7.4.150.0080.00413.27
7.4.140.0060.00513.23
7.4.130.0080.00814.88
7.4.120.0110.00614.80
7.4.110.0080.00714.92
7.4.100.0080.00514.79
7.4.90.0060.00814.61
7.4.80.0080.00816.31
7.4.70.0100.00714.92
7.4.60.0090.00514.81
7.4.50.0030.01014.92
7.4.40.0030.01114.67
7.4.30.0090.00413.20
7.4.20.0080.00513.17
7.4.10.0060.01114.13
7.4.00.0070.00814.02
7.3.330.0050.00516.20
7.3.320.0030.00513.15
7.3.310.0060.00414.67
7.3.300.0080.00414.87
7.3.290.0070.00715.56
7.3.280.0060.00914.78
7.3.270.0030.00712.77
7.3.260.0090.00514.80
7.3.250.0120.00013.35
7.3.240.0100.00615.82
7.3.230.0090.00614.87
7.3.220.0070.00713.25
7.3.210.0060.00814.76
7.3.200.0100.00514.80
7.3.190.0090.00714.78
7.3.180.0090.00714.71
7.3.170.0050.00914.90
7.3.160.0090.00614.82
7.3.150.0120.00313.27
7.3.140.0120.00013.09
7.3.130.0170.00013.87
7.3.120.0110.00613.77
7.3.110.0090.00713.68
7.3.100.0090.00713.76
7.3.90.0130.00114.06
7.3.80.0030.01213.84
7.3.70.0060.00814.02
7.3.60.0110.00313.92
7.3.50.0100.00713.85
7.3.40.0080.00814.03
7.3.30.0110.00513.98
7.3.20.0110.00514.81
7.3.10.0060.01114.96
7.3.00.0160.00114.74
7.2.340.0130.00013.32
7.2.330.0090.00615.09
7.2.320.0070.00814.79
7.2.310.0070.00814.90
7.2.300.0110.00614.87
7.2.290.0130.00215.14
7.2.280.0090.00413.30
7.2.270.0060.00613.31
7.2.260.0130.00414.07
7.2.250.0160.00213.87
7.2.240.0080.01013.94
7.2.230.0110.00514.13
7.2.220.0110.00513.99
7.2.210.0160.00214.02
7.2.200.0150.00313.97
7.2.190.0090.00814.04
7.2.180.0080.00813.98
7.2.170.0090.00714.12
7.2.160.0120.00514.12
7.2.150.0100.00715.11
7.2.140.0150.00414.97
7.2.130.0180.00315.03
7.2.120.0070.00915.10
7.2.110.0150.00614.96
7.2.100.0110.00715.13
7.2.90.0110.00915.14
7.2.80.0160.00415.05
7.2.70.0150.00314.93
7.2.60.0130.00515.04
7.2.50.0120.00414.93
7.2.40.0110.00615.19
7.2.30.0170.00215.17
7.2.20.0120.00615.10
7.2.10.0160.00315.18
7.2.00.0080.00715.12

preferences:
12.38 ms | 406 KiB | 5 Q