3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo () { return ['red', 'cat']; } [$color, $animal] = foo(); var_dump("Big $color animal looked like a $animal.");

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.70.0110.00718.48
8.3.60.0070.00718.43
8.3.50.0100.01322.04
8.3.40.0150.00018.67
8.3.30.0100.00718.84
8.3.20.0070.00021.77
8.3.10.0040.00420.16
8.3.00.0080.00020.77
8.2.180.0110.00418.29
8.2.170.0110.00422.96
8.2.160.0110.00420.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00022.25
8.2.120.0000.00826.35
8.2.110.0030.00620.94
8.2.100.0040.00818.03
8.2.90.0030.00519.35
8.2.80.0030.00517.97
8.2.70.0060.00317.50
8.2.60.0040.00718.05
8.2.50.0080.00018.10
8.2.40.0090.00022.34
8.2.30.0000.00720.42
8.2.20.0030.00518.12
8.2.10.0040.00418.17
8.2.00.0080.00018.28
8.1.280.0150.00425.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00522.24
8.1.230.0030.00917.45
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.22
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0040.00418.58
8.1.160.0070.00018.81
8.1.150.0070.00020.24
8.1.140.0040.00419.48
8.1.130.0000.00817.37
8.1.120.0030.00417.29
8.1.110.0040.00417.34
8.1.100.0030.00317.29
8.1.90.0050.00317.37
8.1.80.0000.00717.39
8.1.70.0080.00017.43
8.1.60.0040.00417.46
8.1.50.0040.00417.52
8.1.40.0000.00717.54
8.1.30.0000.00817.60
8.1.20.0040.00417.58
8.1.10.0050.00317.55
8.1.00.0030.00517.46
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0070.00018.34
8.0.270.0040.00417.18
8.0.260.0000.00716.68
8.0.250.0000.00716.85
8.0.240.0070.00016.83
8.0.230.0000.00816.90
8.0.220.0000.00716.83
8.0.210.0030.00316.93
8.0.200.0000.00716.87
8.0.190.0040.00416.95
8.0.180.0000.00716.88
8.0.170.0000.00716.93
8.0.160.0000.00716.84
8.0.150.0000.00816.78
8.0.140.0040.00416.75
8.0.130.0030.00313.27
8.0.120.0030.00516.83
8.0.110.0040.00416.86
8.0.100.0000.00816.86
8.0.90.0000.00816.74
8.0.80.0060.01516.87
8.0.70.0000.00816.74
8.0.60.0040.00416.79
8.0.50.0060.00316.78
8.0.30.0090.01017.05
8.0.20.0100.01117.40
8.0.10.0000.00716.81
8.0.00.0030.01316.99
7.4.330.0000.00515.55
7.4.320.0060.00016.44
7.4.300.0000.00616.57
7.4.290.0070.00016.52
7.4.280.0050.00216.41
7.4.270.0030.00316.61
7.4.260.0000.00816.40
7.4.250.0030.00516.47
7.4.240.0000.00716.35
7.4.230.0040.00416.70
7.4.220.0040.02216.60
7.4.210.0070.00716.49
7.4.200.0070.00016.64
7.4.160.0060.00916.45
7.4.150.0110.00717.40
7.4.140.0120.01017.86
7.4.130.0070.01216.50
7.4.120.0100.00816.61
7.4.110.0120.00616.43
7.4.100.0120.00616.41
7.4.90.0030.01516.32
7.4.80.0100.00719.39
7.4.70.0170.00016.38
7.4.60.0040.01216.45
7.4.50.0030.01016.40
7.4.40.0120.00916.38
7.4.30.0080.00816.47
7.4.00.0000.01714.93
7.3.330.0000.00513.32
7.3.320.0050.00013.36
7.3.310.0030.00316.20
7.3.300.0060.00016.17
7.3.290.0060.00016.30
7.3.280.0070.00916.34
7.3.270.0100.00717.40
7.3.260.0080.01116.37
7.3.250.0090.00816.52
7.3.240.0080.01416.24
7.3.230.0090.00916.42
7.3.210.0070.01016.56
7.3.200.0140.00316.68
7.3.190.0000.01716.55
7.3.180.0100.00716.11
7.3.170.0100.01416.49
7.3.160.0170.00316.53
7.2.330.0060.01816.28
7.2.320.0130.00716.67
7.2.310.0100.00616.57
7.2.300.0130.01016.70
7.2.290.0110.01216.71
7.2.60.0080.00316.85
7.1.200.0090.00315.88
7.1.70.0110.00616.91
7.1.60.0030.01017.19
7.1.50.0130.01034.56
7.1.20.0400.06340.38
7.1.10.0130.05722.24
7.1.00.0130.06322.47
7.0.200.0000.01716.64
7.0.160.0130.07021.82
7.0.150.0100.06021.89
7.0.140.0100.05721.99
7.0.130.0100.05321.91
7.0.120.0100.05721.74
7.0.110.0070.06021.84
7.0.100.0070.06321.87
7.0.90.0100.05721.91
7.0.80.0230.05721.84
7.0.70.0100.07021.89
7.0.60.0070.07021.78
7.0.50.0030.08022.04
7.0.40.0100.06321.77
7.0.30.0000.08721.89
7.0.20.0330.06721.86
7.0.10.0100.08021.92
7.0.00.0100.07021.88

preferences:
75.3 ms | 401 KiB | 5 Q