3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $test = ["1", 1, 1.0, true]; $test = array_map(function(int $a){return $a;}, $test); var_dump($test);

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.0090.00618.18
8.3.50.0070.00717.99
8.3.40.0120.00618.68
8.3.30.0090.00618.54
8.3.20.0060.00319.01
8.3.10.0080.00020.78
8.3.00.0040.00423.65
8.2.180.0040.01118.16
8.2.170.0070.00722.96
8.2.160.0030.01019.29
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0070.00021.13
8.2.120.0040.00426.35
8.2.110.0030.00622.30
8.2.100.0030.00917.77
8.2.90.0060.00319.09
8.2.80.0040.00417.97
8.2.70.0060.00317.93
8.2.60.0040.00417.93
8.2.50.0050.00318.10
8.2.40.0040.00419.49
8.2.30.0000.00719.16
8.2.20.0070.00018.17
8.2.10.0040.00418.18
8.2.00.0040.00419.40
8.1.280.0110.00425.92
8.1.270.0050.00221.98
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0040.01420.90
8.1.230.0030.00718.79
8.1.220.0020.00517.74
8.1.210.0030.00618.77
8.1.200.0030.00617.13
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0000.01020.67
8.1.160.0040.00418.74
8.1.150.0040.00418.89
8.1.140.0060.00317.60
8.1.130.0000.00718.93
8.1.120.0050.00217.41
8.1.110.0050.00317.43
8.1.100.0040.00417.38
8.1.90.0030.00517.41
8.1.80.0050.00317.47
8.1.70.0030.00917.42
8.1.60.0040.00417.64
8.1.50.0030.00617.40
8.1.40.0040.00417.53
8.1.30.0000.00817.67
8.1.20.0030.00617.54
8.1.10.0040.00417.46
8.1.00.0040.00417.53
8.0.300.0070.00018.77
8.0.290.0000.00816.58
8.0.280.0070.00018.37
8.0.270.0030.00317.10
8.0.260.0030.00317.18
8.0.250.0070.00016.94
8.0.240.0020.00516.91
8.0.230.0050.00316.95
8.0.220.0030.00316.78
8.0.210.0000.00816.91
8.0.200.0000.00816.96
8.0.190.0070.00017.03
8.0.180.0000.00917.00
8.0.170.0040.00416.97
8.0.160.0040.00416.84
8.0.150.0090.00016.93
8.0.140.0000.00716.88
8.0.130.0060.00013.30
8.0.120.0000.00716.89
8.0.110.0040.00416.82
8.0.100.0040.00416.79
8.0.90.0000.00716.88
8.0.80.0060.01216.88
8.0.70.0050.00316.89
8.0.60.0050.00216.82
8.0.50.0040.00417.01
8.0.30.0110.00617.11
8.0.20.0150.00417.40
8.0.10.0030.00516.95
8.0.00.0120.00616.79
7.4.330.0000.00615.55
7.4.320.0060.00016.54
7.4.300.0000.00716.60
7.4.290.0070.00016.39
7.4.280.0060.00316.39
7.4.270.0030.00316.64
7.4.260.0070.00016.53
7.4.250.0040.00416.46
7.4.240.0070.00016.63
7.4.230.0030.00316.52
7.4.220.0080.00016.50
7.4.210.0080.00616.66
7.4.200.0070.00016.53
7.4.160.0100.00516.58
7.4.140.0120.01017.86
7.4.130.0070.01016.25
7.4.120.0080.01016.45
7.4.110.0110.00616.46
7.4.100.0090.00916.43
7.4.90.0070.01016.39
7.4.80.0130.00719.39
7.4.70.0080.00816.40
7.4.60.0060.00916.39
7.4.50.0110.00016.41
7.4.40.0090.01616.38
7.4.00.0110.00715.07
7.3.330.0050.00013.16
7.3.320.0050.00013.10
7.3.310.0050.00316.05
7.3.300.0070.00016.24
7.3.290.0000.00716.25
7.3.280.0140.00316.17
7.3.260.0110.00816.38
7.3.240.0060.01116.31
7.3.230.0090.00616.17
7.3.210.0090.01316.25
7.3.200.0070.01016.72
7.3.190.0110.00816.25
7.3.180.0130.00316.43
7.3.170.0100.00616.18
7.3.160.0120.00916.45
7.2.330.0100.01316.45
7.2.320.0000.01716.45
7.2.310.0090.00916.61
7.2.300.0100.00616.62
7.2.290.0120.00616.50
7.2.70.1440.01214.82
7.2.60.1120.00314.98
7.2.50.0990.00914.86
7.2.40.0960.00014.94
7.2.30.0790.01214.51
7.2.20.0920.00714.98
7.2.10.0890.00714.48
7.2.00.0800.00714.77
7.1.200.0030.00315.45
7.1.170.0980.00713.57
7.1.160.0850.00713.36
7.1.150.0830.00913.81
7.1.140.0800.01013.62
7.1.130.0820.00713.55
7.1.120.0840.00313.61
7.1.110.0820.00713.80
7.1.100.0780.01313.59
7.1.90.1480.00713.42
7.1.80.1520.01013.82
7.1.70.1700.01013.77
7.1.60.1980.01031.71
7.1.50.1770.01631.94
7.1.40.1960.00731.47
7.1.30.2660.00731.71
7.1.20.1800.01031.53
7.1.10.1840.01413.82
7.1.00.1480.00313.84

preferences:
51.52 ms | 401 KiB | 5 Q