3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function run() { array_walk($list = ['fuck', 'white'], [$this, 'sqlFilter']); var_dump($list); } private function sqlFilter($key, &$value) { $value = ucfirst($value); } } (new test)->run();

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.0120.00618.68
8.3.50.0080.01122.11
8.3.40.0150.00018.78
8.3.30.0120.00318.83
8.3.20.0120.00320.19
8.3.10.0080.00021.62
8.3.00.0040.00423.52
8.2.180.0130.01018.54
8.2.170.0120.00919.07
8.2.160.0130.00322.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0070.00019.77
8.2.120.0000.00726.35
8.2.110.0000.00922.08
8.2.100.0060.00617.90
8.2.90.0080.00019.09
8.2.80.0000.00817.97
8.2.70.0000.00917.50
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0040.00422.28
8.2.30.0050.00320.73
8.2.20.0000.00717.67
8.2.10.0000.00717.97
8.2.00.0000.00818.03
8.1.280.0090.00625.92
8.1.270.0080.00023.84
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0070.00422.06
8.1.230.0110.00019.07
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.00
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0000.00818.51
8.1.160.0000.00720.80
8.1.150.0040.00418.84
8.1.140.0030.00619.49
8.1.130.0000.00717.54
8.1.120.0000.00717.36
8.1.110.0000.00717.29
8.1.100.0060.00317.43
8.1.90.0070.00017.37
8.1.80.0000.00817.38
8.1.70.0040.00417.42
8.1.60.0000.00817.43
8.1.50.0030.00517.51
8.1.40.0040.00417.57
8.1.30.0030.00517.56
8.1.20.0070.00017.71
8.1.10.0000.00817.61
8.1.00.0030.00517.54
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0050.00318.40
8.0.270.0070.00017.06
8.0.260.0040.00417.18
8.0.250.0000.00717.02
8.0.240.0000.00716.99
8.0.230.0080.00017.01
8.0.220.0040.00416.91
8.0.210.0000.00716.88
8.0.200.0040.00416.96
8.0.190.0040.00416.93
8.0.180.0050.00316.91
8.0.170.0080.00016.81
8.0.160.0040.00416.93
8.0.150.0000.00816.80
8.0.140.0030.00316.73
8.0.130.0030.00313.30
8.0.120.0030.00516.86
8.0.110.0030.00516.71
8.0.100.0050.00316.75
8.0.90.0040.00416.67
8.0.80.0070.01116.85
8.0.70.0040.00416.94
8.0.60.0080.00016.77
8.0.50.0050.00316.77
8.0.30.0090.01017.08
8.0.20.0140.00817.40
8.0.10.0040.00417.05
8.0.00.0120.00516.77
7.4.330.0030.00316.74
7.4.320.0000.00716.50
7.4.300.0000.00616.52
7.4.290.0100.00016.50
7.4.280.0050.00516.63
7.4.270.0030.00316.59
7.4.260.0000.00816.57
7.4.250.0040.00416.45
7.4.240.0000.00716.56
7.4.230.0030.00316.59
7.4.220.0110.00716.61
7.4.210.0110.00616.49
7.4.200.0040.00216.41
7.4.160.0130.00316.68
7.4.150.0120.00917.40
7.4.140.0130.01017.86
7.4.130.0070.01116.52
7.4.120.0100.00716.56
7.4.110.0100.01416.55
7.4.100.0090.00916.60
7.4.90.0120.00616.50
7.4.80.0110.00619.39
7.4.70.0350.02216.50
7.4.60.0130.00316.43
7.4.50.0060.00616.49
7.4.40.0080.00816.36
7.4.30.0120.00616.56
7.4.00.0050.01114.79
7.3.330.0000.00613.46
7.3.320.0000.00513.22
7.3.310.0000.00716.18
7.3.300.0000.00716.32
7.3.290.0030.00316.40
7.3.280.0090.00916.35
7.3.270.0060.01017.40
7.3.260.0070.01716.43
7.3.250.0100.01116.38
7.3.240.0070.01416.35
7.3.230.0160.00316.44
7.3.210.0080.00816.23
7.3.200.0120.00819.39
7.3.190.0100.00716.64
7.3.180.0070.01016.28
7.3.170.0100.00616.52
7.3.160.0150.00816.29
7.3.120.0040.01514.79
7.3.110.0070.01114.64
7.3.100.0120.00314.93
7.3.90.0090.00014.55
7.3.80.0110.00414.90
7.3.70.0090.00314.69
7.3.60.0090.00614.78
7.3.50.0030.01014.47
7.3.40.0050.00514.91
7.3.30.0100.00314.85
7.3.20.0000.01516.31
7.3.10.0030.01316.85
7.3.00.0070.00716.62
7.2.330.0100.01316.60
7.2.320.0100.00716.80
7.2.310.0080.01216.46
7.2.300.0130.00716.75
7.2.290.0170.00716.73
7.2.250.0130.00714.85
7.2.240.0090.00415.19
7.2.230.0060.01215.16
7.2.220.0060.00315.19
7.2.210.0100.00714.79
7.2.200.0110.00414.97
7.2.190.0070.00715.01
7.2.180.0100.00615.01
7.2.170.0040.01214.89
7.2.60.0000.01516.67
7.2.00.0070.00719.28
7.1.330.0000.01115.77
7.1.320.0000.00915.63
7.1.310.0110.00415.40
7.1.300.0030.01315.77
7.1.290.0100.00315.70
7.1.280.0030.01015.79
7.1.270.0070.00315.79
7.1.260.0030.00715.77
7.1.200.0100.00015.89
7.1.100.0060.00618.07
7.1.70.0030.01317.23
7.1.60.0110.01419.20
7.1.50.0190.00634.72
7.1.00.0030.07722.57
7.0.200.0000.00816.88
7.0.60.0070.04721.71
7.0.50.0070.04317.88
7.0.40.0200.07720.21
7.0.30.0330.05720.41
7.0.20.0370.07320.16
7.0.10.0100.08020.23
7.0.00.0070.06320.06
5.6.280.0000.03320.93
5.6.210.0030.05020.57
5.6.200.0100.06718.19
5.6.190.0030.04020.33
5.6.180.0100.07320.34
5.6.170.0330.07020.45
5.6.160.0130.07320.48
5.6.150.0100.04718.16
5.6.140.0070.04318.11
5.6.130.0070.06718.14
5.6.120.0100.08021.11
5.6.110.0100.05021.05
5.6.100.0100.07721.01
5.6.90.0130.03321.13
5.6.80.0130.07320.38
5.5.350.0400.06720.47
5.5.340.0130.07318.07
5.5.330.0030.05320.40
5.5.320.0470.05320.25
5.5.310.0300.04320.27
5.5.300.0100.05718.04
5.5.290.0130.07318.08
5.5.280.0000.04720.85
5.5.270.0130.08020.73
5.5.260.0030.04020.97
5.5.250.0070.08720.69
5.5.240.0230.06320.24

preferences:
59 ms | 401 KiB | 5 Q