3v4l.org

run code in 300+ PHP versions simultaneously
<?php function baz($a){ unset($a); echo "2\n"; var_dump(func_get_args()); }; echo "1\n"; baz(new class(){ function __destruct(){ echo "destruct\n"; }}); echo "3\n";

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.4.20.0170.00317.40
8.4.10.0080.00817.56
8.3.150.0120.00618.04
8.3.140.0120.00617.13
8.3.130.0090.00616.66
8.3.120.0080.00020.64
8.3.110.0090.00020.94
8.3.100.0050.00316.20
8.3.90.0040.00426.77
8.3.80.0100.00018.43
8.3.70.0100.00616.58
8.3.60.0100.01016.63
8.3.50.0100.00921.93
8.3.40.0170.00318.43
8.3.30.0030.01018.63
8.3.20.0000.00818.99
8.3.10.0000.00721.86
8.3.00.0040.00419.56
8.2.260.0110.00716.74
8.2.250.0000.00818.76
8.2.240.0040.01216.92
8.2.230.0090.00022.58
8.2.220.0030.00624.06
8.2.210.0140.00426.77
8.2.200.0070.00316.50
8.2.190.0100.00718.41
8.2.180.0100.01025.92
8.2.170.0140.00722.96
8.2.160.0090.00622.12
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0080.00019.64
8.2.120.0040.00426.35
8.2.110.0000.01019.20
8.2.100.0080.00417.78
8.2.90.0030.00519.02
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0000.00917.80
8.2.50.0050.00318.07
8.2.40.0040.00418.16
8.2.30.0070.00317.94
8.2.20.0040.00417.79
8.2.10.0040.00418.12
8.2.00.0040.00417.98
8.1.310.0110.00718.17
8.1.300.0040.00418.63
8.1.290.0090.00630.84
8.1.280.0140.00725.92
8.1.270.0040.00423.99
8.1.260.0080.00028.09
8.1.250.0050.00328.09
8.1.240.0090.00019.12
8.1.230.0110.00020.97
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.11
8.1.180.0050.00318.10
8.1.170.0040.00418.46
8.1.160.0060.00318.87
8.1.150.0000.00818.83
8.1.140.0000.00819.39
8.1.130.0000.00717.67
8.1.120.0050.00317.25
8.1.110.0000.00817.39
8.1.100.0040.00417.28
8.1.90.0040.00417.33
8.1.80.0070.00017.44
8.1.70.0030.00317.38
8.1.60.0040.00517.50
8.1.50.0050.00517.45
8.1.40.0030.00517.45
8.1.30.0000.00817.61
8.1.20.0000.00717.52
8.1.10.0000.00817.58
8.1.00.0030.00617.30
8.0.300.0000.00918.77
8.0.290.0050.00516.58
8.0.280.0070.00018.36
8.0.270.0030.00517.27
8.0.260.0060.00017.25
8.0.250.0070.00016.89
8.0.240.0040.00416.79
8.0.230.0080.00016.84
8.0.220.0000.00716.86
8.0.210.0100.00016.67
8.0.200.0040.00416.86
8.0.190.0040.00416.79
8.0.180.0040.00416.85
8.0.170.0040.00416.89
8.0.160.0070.00016.84
8.0.150.0070.00016.83
8.0.140.0070.00016.78
8.0.130.0000.00613.25
8.0.120.0000.00816.79
8.0.110.0000.00716.77
8.0.100.0000.00816.77
8.0.90.0040.00416.79
8.0.80.0080.00816.80
8.0.70.0030.00616.77
8.0.60.0040.00416.72
8.0.50.0040.00416.78
8.0.30.0130.00516.95
8.0.20.0080.01017.40
8.0.10.0040.00416.84
8.0.00.0130.00616.94
7.4.330.0050.00016.67
7.4.320.0030.00316.57
7.4.300.0040.00416.49
7.4.290.0000.00716.45
7.4.280.0040.00416.43
7.4.270.0000.00616.55
7.4.260.0070.00016.42
7.4.250.0000.00816.46
7.4.240.0050.00316.46
7.4.230.0030.00316.33
7.4.220.0110.00716.50
7.4.210.0080.00916.55
7.4.200.0030.00316.34
7.4.160.0090.00616.44
7.4.150.0150.00317.40
7.4.140.0120.00517.86
7.4.130.0120.00616.46
7.4.120.0050.01516.45
7.4.110.0030.01316.21
7.4.100.0030.01316.31
7.4.90.0060.01216.30
7.4.80.0170.00419.39
7.4.70.0090.00616.57
7.4.60.0100.01016.54
7.4.50.0080.00816.55
7.4.40.0060.01016.28
7.4.30.0060.01016.51
7.4.00.0090.00314.85
7.3.330.0030.00313.31
7.3.320.0000.00613.16
7.3.310.0040.00416.15
7.3.300.0070.00016.25
7.3.290.0110.00616.33
7.3.280.0110.00416.29
7.3.270.0070.01117.40
7.3.260.0060.01216.51
7.3.250.0110.01016.33
7.3.240.0120.00816.35
7.3.230.0050.00516.39
7.3.210.0100.00716.32
7.3.200.0100.00616.42
7.3.190.0140.00316.53
7.3.180.0090.00616.34
7.3.170.0150.00416.28
7.3.160.0130.00316.57
7.2.330.0070.01116.66
7.2.320.0030.01316.30
7.2.310.0090.00816.67
7.2.300.0130.01416.31
7.2.290.0130.00316.59
7.2.60.0160.00616.70
7.2.00.0030.01019.21
7.1.200.0230.00715.32
7.1.100.0220.01217.65
7.1.70.0040.00416.81
7.1.60.0100.01319.54
7.1.50.0090.00916.93
7.1.00.0100.06722.40
7.0.200.0000.01116.72
7.0.100.0000.04719.95
7.0.90.0030.09320.00
7.0.80.0170.08019.93
7.0.70.0200.04719.89
7.0.60.0070.08019.91
7.0.50.0230.06320.39
7.0.40.0100.06720.05
7.0.30.0100.08320.06
7.0.20.0030.05320.01
7.0.10.0270.06020.08
7.0.00.0030.05320.10
5.6.280.0000.07320.90
5.6.250.0100.04320.67
5.6.240.0000.08720.61
5.6.230.0100.08020.63
5.6.220.0070.06020.74
5.6.210.0170.06720.77
5.6.200.0000.07721.04
5.6.190.0170.07321.03
5.6.180.0070.07721.03
5.6.170.0000.08721.03
5.6.160.0130.04321.05
5.6.150.0070.04720.98
5.6.140.0030.08721.06
5.6.130.0000.05721.09
5.6.120.0000.09020.94
5.6.110.0030.07021.04
5.6.100.0200.08021.08
5.6.90.0070.07721.04
5.6.80.0070.04720.49
5.6.70.0130.07020.52
5.6.60.0000.05020.31
5.6.50.0130.04320.50
5.6.40.0070.07720.30
5.6.30.0130.06320.54
5.6.20.0100.08020.44
5.6.10.0030.07720.43
5.6.00.0170.07020.37
5.5.380.0030.08320.45
5.5.370.0070.08020.37
5.5.360.0000.05720.36
5.5.350.0130.08020.39
5.5.340.0030.06320.88
5.5.330.0230.04720.89
5.5.320.0030.08320.83
5.5.310.0100.06320.93
5.5.300.0030.08320.78
5.5.290.0070.08320.77
5.5.280.0030.09020.63
5.5.270.0100.08320.88
5.5.260.0030.05020.60
5.5.250.0070.08020.64
5.5.240.0130.07020.26
5.5.230.0030.08720.30
5.5.220.0130.07020.25
5.5.210.0070.07720.11
5.5.200.0100.08020.27
5.5.190.0070.07320.19
5.5.180.0130.07020.25
5.5.160.0070.04320.23
5.5.150.0130.05720.19
5.5.140.0030.08020.12
5.5.130.0130.06720.25
5.5.120.0030.07320.24
5.5.110.0100.07320.23
5.5.100.0000.07320.09
5.5.90.0100.06720.07
5.5.80.0170.06720.12
5.5.70.0230.06720.13
5.5.60.0100.07020.11
5.5.50.0170.05020.11
5.5.40.0130.06020.06
5.5.30.0100.04020.00
5.5.20.0130.04019.99
5.5.10.0070.06720.03
5.5.00.0000.05720.06

preferences:
66.32 ms | 403 KiB | 5 Q