3v4l.org

run code in 300+ PHP versions simultaneously
<?php $m1=10; $m2=20; for($i=1; $i<3; $i++){ echo ${"m$i"} . "\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.3.120.0090.00020.54
8.3.110.0040.00418.59
8.3.100.0080.00016.63
8.3.90.0040.00426.77
8.3.80.0090.00016.48
8.3.70.0140.00316.58
8.3.60.0130.00716.75
8.3.50.0120.00422.84
8.3.40.0060.00918.54
8.3.30.0110.00418.79
8.3.20.0030.00320.21
8.3.10.0070.00023.65
8.3.00.0080.00019.26
8.2.240.0050.00317.30
8.2.230.0060.00320.94
8.2.220.0060.00324.06
8.2.210.0070.00026.77
8.2.200.0000.00918.25
8.2.190.0150.00316.58
8.2.180.0130.00718.05
8.2.170.0070.00722.96
8.2.160.0070.00720.57
8.2.150.0000.01424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.07
8.2.110.0040.00420.59
8.2.100.0030.01017.85
8.2.90.0000.00818.16
8.2.80.0050.00317.97
8.2.70.0060.00617.63
8.2.60.0040.00417.93
8.2.50.0090.00018.07
8.2.40.0000.00919.95
8.2.30.0040.00418.11
8.2.20.0040.00417.73
8.2.10.0040.00418.15
8.2.00.0040.00417.67
8.1.300.0090.00019.41
8.1.290.0050.00830.84
8.1.280.0120.00325.92
8.1.270.0080.00022.19
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0090.00022.14
8.1.230.0040.00820.65
8.1.220.0030.00517.76
8.1.210.0030.00518.85
8.1.200.0100.00017.23
8.1.190.0080.00017.23
8.1.180.0090.00018.10
8.1.170.0060.00318.51
8.1.160.0040.00422.00
8.1.150.0040.00418.92
8.1.140.0070.00017.43
8.1.130.0070.00020.26
8.1.120.0000.00717.43
8.1.110.0000.00817.33
8.1.100.0000.00717.37
8.1.90.0070.00017.43
8.1.80.0030.00517.49
8.1.70.0050.00317.41
8.1.60.0030.00617.50
8.1.50.0000.00917.41
8.1.40.0040.00417.37
8.1.30.0040.00417.53
8.1.20.0030.00517.70
8.1.10.0020.00517.54
8.1.00.0000.00717.43
8.0.300.0040.00419.97
8.0.290.0000.00916.75
8.0.280.0000.00718.43
8.0.270.0070.00016.76
8.0.260.0030.00718.52
8.0.250.0000.00716.81
8.0.240.0040.00416.96
8.0.230.0000.00716.89
8.0.220.0000.00716.79
8.0.210.0000.00616.76
8.0.200.0000.00616.95
8.0.190.0050.00316.82
8.0.180.0080.00316.86
8.0.170.0000.00816.96
8.0.160.0000.00816.86
8.0.150.0000.00816.88
8.0.140.0000.00916.82
8.0.130.0000.00513.34
8.0.120.0040.00416.82
8.0.110.0000.00816.86
8.0.100.0000.00816.87
8.0.90.0040.00416.89
8.0.80.0070.01016.76
8.0.70.0000.00816.69
8.0.60.0080.00016.93
8.0.50.0000.00716.71
8.0.30.0100.01117.15
8.0.20.0110.01117.40
8.0.10.0070.00016.82
8.0.00.0090.00916.83
7.4.330.0050.00015.14
7.4.320.0030.00316.41
7.4.300.0030.00316.48
7.4.290.0000.00716.54
7.4.280.0050.00516.45
7.4.270.0030.00316.59
7.4.260.0030.00316.43
7.4.250.0080.00016.56
7.4.240.0000.00716.40
7.4.230.0050.00216.29
7.4.220.0140.00416.57
7.4.210.0080.00816.55
7.4.200.0040.00416.61
7.4.160.0060.00916.47
7.4.150.0100.00717.40
7.4.140.0140.00617.86
7.4.130.0100.00716.42
7.4.120.0070.01016.39
7.4.110.0190.00416.60
7.4.100.0140.00316.46
7.4.90.0100.00916.48
7.4.80.0140.00719.39
7.4.70.0140.00416.57
7.4.60.0030.01516.52
7.4.50.0000.00816.33
7.4.40.0120.00916.41
7.4.30.0070.01016.43
7.4.00.0000.01514.93
7.3.330.0060.00013.07
7.3.320.0050.00013.18
7.3.310.0000.00716.41
7.3.300.0040.00416.20
7.3.290.0090.00616.31
7.3.280.0060.01116.34
7.3.270.0130.00417.40
7.3.260.0090.01216.27
7.3.250.0170.00316.57
7.3.240.0100.01416.30
7.3.230.0110.00816.39
7.3.210.0130.00616.25
7.3.200.0100.01319.39
7.3.190.0150.00716.32
7.3.180.0090.00616.55
7.3.170.0110.01116.28
7.3.160.0110.00316.57
7.3.10.0120.00416.48
7.3.00.0030.01016.73
7.2.330.0100.01416.58
7.2.320.0040.01416.59
7.2.310.0090.00916.71
7.2.300.0120.00616.44
7.2.290.0030.01416.75
7.2.130.0040.01216.99
7.2.120.0040.00816.89
7.2.110.0000.01016.86
7.2.100.0060.00617.02
7.2.90.0030.01016.82
7.2.80.0090.00616.80
7.2.70.0090.00616.99
7.2.60.0050.00716.91
7.2.50.0060.00616.90
7.2.40.0040.01217.00
7.2.30.0060.00817.05
7.2.20.0050.00517.02
7.2.10.0070.01117.01
7.2.00.0050.00818.21
7.1.250.0060.00615.55
7.1.200.0040.00815.72
7.1.100.0040.00817.61
7.1.70.0050.00217.34
7.1.60.0120.00919.40
7.1.50.0090.00916.58
7.1.00.0000.07722.35
7.0.200.0030.00316.86
7.0.140.0000.07721.95
7.0.60.0000.04320.05
7.0.50.0200.06717.81
7.0.40.0070.06320.42
7.0.30.0500.07320.01
7.0.20.0330.07019.98
7.0.10.0130.07320.13
7.0.00.0100.05720.12
5.6.280.0130.06021.11
5.6.210.0030.08720.60
5.6.200.0100.07018.14
5.6.190.0030.05320.61
5.6.180.0230.04320.56
5.6.170.0300.07020.52
5.6.160.0030.09320.32
5.6.150.0030.08318.20
5.6.140.0070.06018.07
5.6.130.0000.06018.07
5.6.120.0100.03320.93
5.6.110.0100.05320.95
5.6.100.0030.08721.00
5.6.90.0100.06320.99
5.6.80.0070.07720.37
5.5.350.0230.07320.46
5.5.340.0030.07718.02
5.5.330.0030.04720.21
5.5.320.0300.05320.34
5.5.310.0330.07720.29
5.5.300.0030.08318.00
5.5.290.0130.07317.90
5.5.280.0100.08020.79
5.5.270.0030.04720.72
5.5.260.0070.08720.78
5.5.250.0130.05020.79
5.5.240.0170.05020.23
5.4.450.0530.04719.41
5.4.440.0230.05319.41
5.4.430.0130.04719.21
5.4.420.0400.03719.53
5.4.410.0070.05019.00
5.4.400.0100.03719.26
5.4.390.0270.02718.89
5.4.380.0270.06018.47
5.4.370.0300.05718.61
5.4.360.0300.05318.71
5.4.350.0200.06718.64
5.4.340.0300.05718.57
5.4.320.0070.03512.45
5.4.310.0070.03712.45
5.4.300.0060.03612.45
5.4.290.0110.03712.45
5.4.280.0050.03812.34
5.4.270.0090.03412.35
5.4.260.0090.03612.34
5.4.250.0070.03712.35
5.4.240.0060.03512.34
5.4.230.0070.04512.34
5.4.220.0070.04012.34
5.4.210.0070.03612.34
5.4.200.0040.04012.34
5.4.190.0080.03712.33
5.4.180.0060.04112.33
5.4.170.0080.03512.34
5.4.160.0030.03812.34
5.4.150.0080.04612.34
5.4.140.0060.03712.02
5.4.130.0040.03712.01
5.4.120.0090.03311.97
5.4.110.0080.03311.96
5.4.100.0070.03311.96
5.4.90.0040.03911.96
5.4.80.0070.03611.96
5.4.70.0070.03411.96
5.4.60.0050.03611.96
5.4.50.0080.03411.96
5.4.40.0040.03711.95
5.4.30.0060.03611.95
5.4.20.0040.03711.94
5.4.10.0050.03611.95
5.4.00.0080.03511.43
5.3.290.0040.04512.80
5.3.280.0110.04812.70
5.3.270.0070.05112.72
5.3.260.0040.04412.72
5.3.250.0060.03812.71
5.3.240.0060.03812.72
5.3.230.0050.03912.71
5.3.220.0100.04512.68
5.3.210.0060.03912.68
5.3.200.0080.03512.68
5.3.190.0070.04212.68
5.3.180.0060.03712.67
5.3.170.0080.03512.67
5.3.160.0050.03912.68
5.3.150.0070.03912.67
5.3.140.0070.03712.66
5.3.130.0060.03912.66
5.3.120.0080.03812.66
5.3.110.0050.04012.66
5.3.100.0040.03812.12
5.3.90.0080.03412.08
5.3.80.0080.03512.07
5.3.70.0100.03312.08
5.3.60.0050.03712.06
5.3.50.0060.03612.00
5.3.40.0060.03712.00
5.3.30.0030.04811.94
5.3.20.0050.03711.72
5.3.10.0040.03711.69
5.3.00.0040.03911.67
5.2.170.0030.0339.18
5.2.160.0030.0319.18
5.2.150.0080.0279.18
5.2.140.0040.0319.17
5.2.130.0040.0299.14
5.2.120.0060.0279.13
5.2.110.0020.0329.14
5.2.100.0060.0289.14
5.2.90.0030.0329.14
5.2.80.0050.0309.14
5.2.70.0020.0349.13
5.2.60.0040.0319.08
5.2.50.0070.0339.05
5.2.40.0060.0279.03
5.2.30.0070.0279.01
5.2.20.0070.0289.00
5.2.10.0040.0298.93
5.2.00.0070.0278.79
5.1.60.0080.0278.07
5.1.50.0070.0268.07
5.1.40.0040.0258.06
5.1.30.0070.0328.40
5.1.20.0050.0288.43
5.1.10.0060.0248.15
5.1.00.0060.0288.15
5.0.50.0050.0276.63
5.0.40.0090.0226.48
5.0.30.0060.0406.30
5.0.20.0070.0176.27
5.0.10.0060.0176.25
5.0.00.0010.0346.23
4.4.90.0030.0154.78
4.4.80.0030.0154.75
4.4.70.0020.0174.76
4.4.60.0030.0154.75
4.4.50.0030.0154.77
4.4.40.0040.0244.71
4.4.30.0020.0164.76
4.4.20.0050.0144.84
4.4.10.0040.0144.85
4.4.00.0050.0234.76
4.3.110.0020.0174.67
4.3.100.0030.0184.66
4.3.90.0050.0124.63
4.3.80.0030.0244.59
4.3.70.0040.0134.63
4.3.60.0060.0114.63
4.3.50.0020.0164.62
4.3.40.0040.0234.53
4.3.30.0040.0153.29
4.3.20.0040.0143.27
4.3.10.0020.0163.23
4.3.00.0070.01715.63

preferences:
29.48 ms | 403 KiB | 5 Q